i am a beginner. i want print a number on the system with this code:
int myNum=33 ; System.out.println(myNum) ;
command prompt rather put this out:
C:\Users\HP\Documents>javac myNum.java
myNum.java:1: error: class, interface, or enum expected
int myNum=33 ;
^
myNum.java:1: error: class, interface, or enum expected
int myNum=33 ;
^
myNum.java:2: error: class, interface, or enum expected
System.out.println(myNum) ;
^
3 errors
pls, are these errors from my code or whaT?