Computer Applications
Write down the syntax with reference to Java Programming to accept a fractional value (float) 'm' through Scanner Class
Input in Java
91 Likes
Answer
Scanner in = new Scanner(System.in);
float m = in.nextFloat();
Answered By
60 Likes
Related Questions
Name a method that accepts an integer token through scanner object
Write down the syntax with reference to Java Programming to accept an integral value 'p' through Stream Class
Write down the syntax with reference to Java Programming to accept a character 'd' through Stream Class
Write down the syntax with reference to Java Programming to accept a fraction value 'n' in double data type through Stream Class