Computer Science, asked by alfaid45, 10 months ago

-
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 zyuvraj
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 kedassiri21
2

got the answer.................

Attachments:
Similar questions