Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Visit: http://www.sanosay.org/courses/oop/lectures/misc/
- public class HelloWorld{
- public static void main(String[] args){
- System.out.println("Hello World");
- }
- }
- public class Main{
- public static void main(String[] args){
- System.out.println(" * \n ***\n*****\n *\n *");
- }
- }
- public class Prakseis{
- public static void main(String[] args){
- double x = 5;
- int a = 5;
- float z = 0.2;
- char c = 'a';
- boolean s = false;
- double y = 6;
- String hello = "World";
- hello = "Hello " + hello + "x =" + 5;
- System.out.println(hello);
- System.out.println(x+y);
- System.out.println(x-y);
- System.out.println(x/y);
- System.out.println(x*y);
- }
- }
- public class Hello{
- /**
- Hello world
- */
- public static void main(String[] args){
- String name = "Dimitris";
- String eponimo = "Diamantis";
- int age = -1;
- // inline comment
- System.out.println(name + " " + eponimo);
- System.out.println("Age: " + age);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement