i have made a file youtube.java in C:\test> but I'm to compile using cmd
I have set the path in environmental variables
C:\Program Files\Java\jdk1.8.0_92\bin
I have code all the coding as given below
class apples{
public static void main(string args[]){
system.out.println("hello youtube!");
}
}
but when I go for compile in cmd error comes as give below
youtube.java:2: error: cannot find symbol
public static void main(string args[]){
^
symbol: class string
location: class apples
youtube.java:3: error: package system does not exist
system.out.println("hello youtube!");
^
2 errors
PLease help me getting out of this