Created
October 26, 2019 09:09
-
-
Save h26k2/4ad0849eaba702814bf0a62f8f2a3a90 to your computer and use it in GitHub Desktop.
java assignment first of OOP-Course
This file contains 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package bebooked; | |
/** | |
* | |
* @author Hasnain karim | |
*/ | |
public class FirstWork { | |
public static void main(String[] args){ | |
sayHello(); | |
arithmeticOperator(); | |
} | |
static void sayHello(){ | |
System.out.println("Hell world!"); | |
} | |
static void arithmeticOperator(){ | |
int a , b; | |
a = b = 5; | |
System.out.println(a+b); | |
System.out.println(a-b); | |
System.out.println(a*b); | |
System.out.println(a/b); | |
System.out.println(a%b); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment