+ 6
How To Create Two Class Using Note Pad in Java ?
I Want To Create Two Different Class in java using note pad and run them using cmd run those coodes .
2 Antworten
+ 3
javac file1.java file2.java
if multiple filess are in same folder
javac *.java
+ 2
create your 2 class and the class that holde your main method must be his name as your java program main ex(myclass is the class that hold the main method so the program main must be myclass.java then u can create how many class that u want)