-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampleio.java
More file actions
29 lines (22 loc) · 810 Bytes
/
sampleio.java
File metadata and controls
29 lines (22 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class sampleio {
public static void main(String[] args) {
//input the String value
String name = io.inputS("what is your name: ");
io.print(name + "\n");
//input the int value
int id = io.inputI("what is your id: ");
io.print(id + "\n");
//input the double value
double mark = io.inputD("what is your mark: ");
io.print(mark + "\n");
//input the float value
float weight = io.inputF("what is your weight: ");
io.print(weight + "\n");
//input the char value
char char_enter = io.inputC("what is your character: ");
io.print(char_enter + "\n");
//input the boolean value
boolean tr_fa = io.inputB("Are you a boy: ");
io.print(tr_fa + "\n");
}
}