+ 1

What if we dont create a class

22nd Sep 2017, 6:16 AM
Abinesh N
Abinesh N - avatar
6 Answers
+ 7
You could also add a text file, change the extension to .java and compile it with the javac from the console. But I guess right click, new class from the ide is easier ;)
22nd Sep 2017, 6:29 AM
Tashi N
Tashi N - avatar
+ 5
You need at least one class that contains the main method ;)
22nd Sep 2017, 6:24 AM
Tashi N
Tashi N - avatar
+ 5
In general? As many as you need.
22nd Sep 2017, 6:27 AM
Tashi N
Tashi N - avatar
+ 3
thank you
22nd Sep 2017, 6:30 AM
Abinesh N
Abinesh N - avatar
+ 1
how many class can we add
22nd Sep 2017, 6:26 AM
Abinesh N
Abinesh N - avatar
+ 1
is that the only way to add class(right click src folder create class)
22nd Sep 2017, 6:27 AM
Abinesh N
Abinesh N - avatar