This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | print('hello world') | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Universal{ | |
| private static int var = 10; | |
| //main function | |
| public static void main(String[] args){ | |
| var = 25; | |
| System.out.println(var); | |
| universal(); //this will call universal() function to the main | |
| local(); //this will call local() function to the main | |
| } | |
| //custom function | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Variables{ | |
| int var = 10; | |
| public static void main(String[] args){ | |
| var = 25; | |
| System.out.println(var); | |
| var = var + 5; | |
| System.out.println(var); | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | one = 1 | |
| two = 2 | |
| three = one + two | |
| print(three) | |
| hello = "hello" | |
| world = "programming" | |
| helloworld = hello + " " + world | |
| print(helloworld) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | int age = 15; | |
| System.out.println("Hello, I am "+age+" years old and after "+(18-age)+" years I will be adult."); |