fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.util.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. // HashSet<String> st = new HashSet<String>();
  14. // st.add("sachit");
  15. // st.add("tammana");
  16. // for(var itr : st)
  17. // {
  18. // char[] ch = itr.toCharArray();
  19. // ch[0] = Character.toUpperCase(ch[0]);
  20. // itr = new String(ch);
  21. // System.out.println(itr);
  22. // }
  23.  
  24. // int n = 5;
  25. // for(int i=1; i<=n; i++)
  26. // {
  27. // for(int j=1; j<=n-i; j++)
  28. // {
  29. // System.out.print(" ");
  30. // }
  31. // for(int k=1; k<=(i*2)-1; k++)
  32. // {
  33. // System.out.print("*");
  34. // }
  35. // System.out.println();
  36. // }
  37.  
  38. int num = 5;
  39. if((num & 1) == 1) System.out.println("Odd");
  40. else System.out.println("Even");
  41. }
  42. }
Success #stdin #stdout 0.1s 52532KB
stdin
Standard input is empty
stdout
Odd