Posts

Showing posts from October, 2020

Computer Solutions For Class - 9, Chapter - 5, Input in Java of Book APC publication

Image
  Chapter 5 Input In Java Class 9 - APC Understanding Computer Applications with BlueJ Name the following Question 1 a package needed to import scanner class java.util Question 2 a method that accepts a character through scanner object charAt() Question 3 a package needed to import Stream Reader Class java.io Question 4 a method to accept an exponential value through scanner object nextDouble() Question 5 a method that accepts an integer token through scanner object nextInt() Write down the syntax with reference to Java Programming Question 1 to accept an integral value 'p' through Stream Class InputStreamReader read = new InputStreamReader ( System . in); BufferedReader in = new BufferedReader (read); int p = Integer . parseInt(in . readLine()); Question 2 to accept a fractional value (float) 'm' through Scanner Class Scanner in = new Scanner ( System . in); float m = in . nextFloat(); Question 3 to accept a character 'd' through Stream Class Input