I\'m New to Java and I am following some instruction, However When I get to the Strings section
public class String {
public static void main(S
As your class hides the java.lang.String
name, you need to write
public static void main(java.lang.String[] args) {
Better call your class StringTest
or something else to avoid this confusion.
public class StringTest {
public static void main(String[] args) {
String name = "luke";
System.out.println("Hello, " + name + "pleased to meet you");
}
}