The Java training online
Try to work with the helping elements before looking at the solution…
Helping elements
training
→ the source code must be located in a directory named training
training
→ the first statement in the class must be package training;
Training
→ the source code must be saved in a file named Training.java
main
method → Its signature is conventionally: public static void main(String[] args) {…
System.out.println (“some text”);
java/
directory, type javac training/Training.java
java/
directory, type java training.Training
A possible solution