I am currently writting programs in linux like this: From the command line I do following steps:
$ touch project.java $ nano project.java
and I write the code.
I have questions: how can I create new classes, interfaces and so on? Because in IDE like Betbeans I can right click on projects name with and choose “create new class” or “create new interface” and it is created but how do it in Linux if I dont use an IDE?
If you don’t use an IDE, you type everything up yourself, with a command line editor – emacs, vi, or nano, like you were using before. (or
CAT >>for serious pros).An Interface looks like this : ( Read Java Sun’s tutorial for more about Interfaces! )
A Class looks like this (Read Java Sun’s tutorial for more about Classes!) :
Etc, it’s all in the documentation. Keep reading Java’s handy tutorial and you’ll find it all.