hey peeps, i have a really big probelemo...i'm in grade 11 and writing i.t p1 prac on monday and still dunno how to call a method from another to a class.....im trying to create a simple program........
Code:public class Display { void display(String heading) { System.out.println("My name is bob."); } }
then call it from this class
please help.....eish im stressing lolCode:public class CallDisplay { public static void main(String[]args) { Display print = new Display(); print.display(); System.out.print(print); } }



LinkBack URL
About LinkBacks



