How Do I Run Multiple instances .java Files (running one of them as an Object or Method) -
i using netbeans ide java 1.8.0
what doing wrong here? want use output.java - believe - method. possible or not?
as mentioned earlier, using netbeans gui editor, automatically added main attribute.
(please keep in mind have started using java week now, concept of methods , objects.)
*edit
public class main { output.main. = new jtextfield(); }
and
public jtextfield getin() { return in; }
where
jtextfield = getin(); string out = out.settext();
in , out jtextfields
in java, run program, class needs have method "public static void main(string[] args)" defined. when attempt run java object compiling "javac myclass.java" , "java myclass", main method begins running.
Comments
Post a Comment