forked from bliblidotcom/training-java-future-program
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloWorld.java
More file actions
Latest commit
21 lines (19 loc) · 398 Bytes
/
Copy pathHelloWorld.java
File metadata and controls
21 lines (19 loc) · 398 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
publicclassHelloWorld {
publicstaticvoidmain(String[] args) {
System.out.println("Hello World!");
intscore = Integer.parseInt(args[0]);
System.out.print("Grade = ");
if(score>=80) {
System.out.print("A");
}
elseif(score>=60){
System.out.print("B");
}
elseif(score>=40){
System.out.print("C");
}
else {
System.out.print("D");
}
}
}