fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10.  
  11.  
  12. public static void main (String[] args) throws java.lang.Exception
  13. {
  14. String Question = "This might be ";
  15. String Youngest = "Shajia";
  16. String Mid_Order = "Mishal";
  17. String Oldest = "Shaiq";
  18. int age = 15;
  19. if(age < 5){
  20. System.out.println(Question + Youngest);
  21. }else if (age < 5 || age >= 10){
  22. System.out.println(Question + Mid_Order);
  23. }else{
  24. System.out.println(Question + Oldest);
  25. }
  26.  
  27. }
  28.  
  29. }
  30.  
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
This might be Mishal