Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
mango
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String[]args){ int apple=25,mango=50,grapes=100; int amount=50; if(amount == apple){ System.out.println("Apple collected"); } if(amount == mango){ System.out.println("Mango collected"); } if(amount == grapes){ System.out.println("Grapes collected"); } } }
run
|
edit
|
history
|
help
0
Application
twelveDays
Check Input
3.c
ContainsMethod
true false
Number to Words (Accenture)
++a vs a++ and calculations around different variables
Minimum Vertices to Traverse Directed Graph
Validate mobile number