public class className{
public void method1(int n) {
//code
}
public static void main (String args[]) {
//how do I call method1?
}
Type: Posts; User: JavaStudent1988
public class className{
public void method1(int n) {
//code
}
public static void main (String args[]) {
//how do I call method1?
}
How do I invoke a method from the main method? does that make sense?