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(); } }
2 Respostas
+ 2
You can follow the below link for NetBeans IDE
https://netbeans.org/kb/docs/java/quickstart.html
+ 1
you have to put the code in Java Class cuz as it is, you've already created a class but not a frame.