0

In Netbeans ide where should we put the following code ? I mean in java class or java frame?

class MyClass { static void sayHello() { System.out.println("Hello World!"); } public static void main(String[ ] args) { sayHello(); } }

17th Jul 2017, 3:54 PM
Yogesh Kumar
Yogesh Kumar - avatar
2 Respostas
+ 2
You can follow the below link for NetBeans IDE https://netbeans.org/kb/docs/java/quickstart.html
17th Jul 2017, 3:59 PM
Apoorva Shenoy Nayak
Apoorva Shenoy Nayak - avatar
+ 1
you have to put the code in Java Class cuz as it is, you've already created a class but not a frame.
17th Jul 2017, 4:33 PM
Eremie Gillowei
Eremie Gillowei - avatar