-
UU51 Slue JUL
II. Write down the syntax with reference to Java Programming:
1. to accept an integral value 'p' through Stream Class
2. to accept a fractional value (float) 'm' through Scanner Class
3. to accept a character 'd' through Stream Class
4. to accept a fraction value 'n' in double data type through Stream Class
5. to accept a word 'wd through Stream Class
6. to create a scanner object
Answers
Answered by
6
Answer:
I can only answer you u on the scanner class questions...
import java.util.Scanner;
float m = (new Scanner (System.in)).nextFloat (); //2
Scanner sc = new Scanner(System.in); //6
Answered by
2
got the answer.................
Attachments:
Similar questions
Social Sciences,
6 months ago
Hindi,
6 months ago
India Languages,
6 months ago
Geography,
1 year ago
World Languages,
1 year ago