Skip to content

Instantly share code, notes, and snippets.

@h26k2
Created October 26, 2019 09:09
Show Gist options
  • Save h26k2/4ad0849eaba702814bf0a62f8f2a3a90 to your computer and use it in GitHub Desktop.
Save h26k2/4ad0849eaba702814bf0a62f8f2a3a90 to your computer and use it in GitHub Desktop.
java assignment first of OOP-Course
/*
* 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