6/14/2022 Online Java Compiler - Online Java Editor - Java Code Online
1 public class irajava{
2 public static void main(String[] args) {
Scanner input = new scanner (System.in) ; Execute Mode, Version, Inputs &
3
4 System.out.printIn ("Massukkan markah anda") ; Arguments
5 int markah = input.nextInt () ;
6 switch (markah) { CommandLine Arguments
7
8
9
case 1: {
Online Java Compiler IDE
if (markah >=90)
Gred = "A+" ;
For Multiple
break;Files, Custom Library and File Read/Write, use our new -
Advanced Java IDE
10
11 } case 2: { Stdin Inputs
12 if (markah >=80) Thanks for using our
13 Gred = "A" ;
14
15
break;
} case 3: { Online Java Compiler IDE
if (markah >=75)
16
17 Gred = "A-" ; to execute your program
18 break;
} case 4: {
Result
19
20 if (markah >=70) CPU Time: sec(s), Memory: kilobyte(s)compiled and ex
21 Gred = "B+" ;
22 break; /irajava.java:51: error: class, inter
23 } case 5: { }
24 if (markah >=65) ^
25 Gred = "B" ; 1 error
26 break;
27 } case 6: {
28 if (markah >=60)
29 Gred = "C+" ;
30 break;
31 } case 7: { Files Uploaded
32 if (markah >=50)
33 Gred = "C" ;
/uploads/irajava
34 Know Your JDoodle
break; JDoodle For Your Organisation
35 } case 8: {
36 JDoodle Supports
if (markah76+ Languages
>=45) with Do you have any specific compiler
37 Gred = "D" ;
38 Multiple Versions and 2 DBs. Click here to
break; requirements?
39 } case 9: {
40 see all. if (markah >=40) Do you want to integrate compilers with
41 Gred = "E" ;
42 Fullscreen - side-by-side
break; code and your website, webapp, mobile app, courses?
43 } default: {
44 output is available. click the>=0)
if (markah " " icon near
45 Gred = "G" ; Do you need more than our Embed and
46 execute button to switch.
break;
47 } API features?
Dark Theme available. Click on " " icon
Looking for Multiple Files, Connecting
near execute button and select dark theme.
to DB, Debugging, etc.?
You can embed code from JDoodle
Are you building any innovative solution
directly into your website/blog. Click here to
for your students or recruitment?
know more.
Want to run JDoodle in-house?
JDoodle offers an API service. You can
execute programs just by calling our API. Custom Domain, White labelled pages
Click here to know more. for your institute?
If you like JDoodle, Please share us in Contact us - We are happy to help!
Social Media. Click here to share.
Check our Documentation Page for
more info.
https://www.jdoodle.com/online-java-compiler/ 1/2
6/14/2022 Online Java Compiler - Online Java Editor - Java Code Online
1 public class irajava{
2 JDoodle
public is servingvoid
static the programming
main(String[] args) {
Scanner input = new scanner (System.in) ; Execute Mode, Version, Inputs &
3 community since 2013
4 System.out.printIn ("Massukkan markah anda") ; Arguments
5 int markah = input.nextInt () ;
6 switch (markah) { CommandLine Arguments
7 case 1: {
8 if (markah >=90)
9 Gred = "A+" ;
10 break;
11 } case 2: { Stdin Inputs
12 if (markah >=80)
13 Gred = "A" ;
14 break;
15 } case 3: {
16 if (markah >=75)
17 Gred = "A-" ;
18 break;
} case 4: {
Result
19
20 if (markah >=70) CPU Time: sec(s), Memory: kilobyte(s)compiled and ex
21 Gred = "B+" ;
22 break; /irajava.java:51: error: class, inter
23 } case 5: { }
24 if (markah >=65) ^
25 Gred = "B" ; 1 error
26 break;
27 } case 6: {
28 if (markah >=60)
29 Gred = "C+" ;
30 break;
31 } case 7: { Files Uploaded
32 if (markah >=50)
33 Gred = "C" ;
/uploads/irajava
34 break;
35 } case 8: {
36 if (markah >=45)
37 Gred = "D" ;
38 break;
39 } case 9: {
40 if (markah >=40)
41 Gred = "E" ;
42 break;
43 } default: {
44 if (markah >=0)
45 Gred = "G" ;
46 break;
47 }
https://www.jdoodle.com/online-java-compiler/ 2/2