Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. /// Visit: http://www.sanosay.org/courses/oop/lectures/misc/
  2.  
  3. public class HelloWorld{
  4. public static void main(String[] args){
  5. System.out.println("Hello World");
  6. }
  7. }
  8. public class Main{
  9. public static void main(String[] args){
  10. System.out.println(" * \n ***\n*****\n *\n *");
  11.  
  12. }
  13.  
  14. }
  15. public class Prakseis{
  16.  
  17. public static void main(String[] args){
  18. double x = 5;
  19. int a = 5;
  20. float z = 0.2;
  21. char c = 'a';
  22. boolean s = false;
  23.  
  24. double y = 6;
  25. String hello = "World";
  26. hello = "Hello " + hello + "x =" + 5;
  27. System.out.println(hello);
  28. System.out.println(x+y);
  29. System.out.println(x-y);
  30. System.out.println(x/y);
  31. System.out.println(x*y);
  32. }
  33.  
  34. }
  35. public class Hello{
  36. /**
  37. Hello world
  38. */
  39. public static void main(String[] args){
  40. String name = "Dimitris";
  41. String eponimo = "Diamantis";
  42. int age = -1;
  43. // inline comment
  44. System.out.println(name + " " + eponimo);
  45. System.out.println("Age: " + age);
  46.  
  47. }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement