public class MethodDeclaration{
public static void main(String[] args) {
//1. create a class instance
MethodDeclaration md = new MethodDeclaration();
//call your first method here
md.talk();
//call your second method here
int number = 2;
// md.getInt(number);
System.out.println("here is your number"+md.getInt(number));
}
//create your first method here
public void talk(){
System.out.println("Inside of the talk method");
}
//create your second method here
public int getInt(int input){
return input;
}
}
public class ReturnTypes{
public static void main(String[] args) {
//create a class instance
ReturnTypes rt = new ReturnTypes();
//call your method here
rt.returnNothing();
}
//create your first method here
public void returnNothing(){
System.out.println("Inside of a void method");
}