KnowledgeBoat Logo
|

Computer Applications

Write down the syntax with reference to Java Programming to accept a fraction value 'n' in double data type through Stream Class

Input in Java

58 Likes

Answer

InputStreamReader read = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(read);
double n = Double.parseDouble(in.readLine());

Answered By

41 Likes


Related Questions