How to use public class in notepad.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use public class in notepad..

27th Sep 2016, 7:55 PM
shashi
shashi - avatar
2 Answers
0
What do you mean? Make a class, create your main () method with proper parameters and add a simple system.out.println statement. Then, save the file as .java and run it in cmd or a compiler of your choice.
27th Sep 2016, 8:21 PM
Joshua Parsons
Joshua Parsons - avatar
0
dont use notepad, get eclipse
28th Sep 2016, 2:50 PM
Mythos