Error:
Main.java:3: error: cannot find symbol
public static void main (string args[]) {
^
symbol: class string
location: class Main
1 error
Code:
Error:
Main.java:3: error: cannot find symbol
public static void main (string args[]) {
^
symbol: class string
location: class Main
1 error
Code:
The code that you have sent here is working perfectly fine. But the code that you have submitted on the portal had a problem.
In public static void main(String[] args) you have kept the s small in String.
Mistake -> public static void main(string[] args). s in String should be capital