when we are creating a new class, and we want to make use of a lot of methods, we do something like this? (we put all the methods inside the main method? or only the void methods?)
public main method (){
method2();
method3();
}
public void method2(){
blah blah blah}
public method3 (){
blah blah blah
return value;
}
how can we use in a (return) method a variable that is included in a previous (void) method?