Tip of the Day

Did you know ... ?

You can view all statements within the method where certain exceptions can be caught.Just place the caret at the throw keyword in a method declaration,press shift+alt+o and select the desired exception class from the list.This will also work for try and catch.

public static void main(String [] args) throw IOException {

  String s;

  do{

    BufferedReader buff = new BufferedReader(new InputStre

    System.out.print("Enter the number of meters(m) to co

    System.out.flush();

    s = buff.readLine();

    String result[] = convertMetersToInches(s);

    System.out.println(result[0]);

    System.out.print(result[1]+"(Type \"y\" for \"yes\"

    System.out.flush();

    s = buff.readLine();

  }while(processRepeatConversion(s));

  System.out.println("THANX FOR USING OUR CONVERTER!BYE!");

 

}

posted @ 2017-01-03 09:32  lythonliu  阅读(345)  评论(0编辑  收藏  举报