We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c9ac13 commit ec68788Copy full SHA for ec68788
BufferedDemo.java
@@ -0,0 +1,25 @@
1
+// To demonstrate BufferedReader class
2
+
3
+import java.io.*;
4
+class BufferedDemo
5
+{
6
+ public static void main(String args[]) throws IOException
7
+ {
8
+ String nm;
9
+ int rn;
10
+ float percent;
11
12
+ InputStreamReader i = new InputStreamReader(System.in);
13
+ BufferedReader br = new BufferedReader(i);
14
15
+ System.out.println("Input Student NAME, ROLL NO and PERCENTAGE : ");
16
+ nm = br.readLine();
17
+ rn = Integer.parseInt(br.readLine());
18
+ percent = Float.parseFloat(br.readLine());
19
20
+ System.out.println("Name : " + nm);
21
+ System.out.println("Roll No : " + rn);
22
+ System.out.println("Percentage : " + percent);
23
+ }
24
+}
25
0 commit comments