Java eclipse String Error

前端 未结 5 729
夕颜
夕颜 2021-01-19 10:16

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         


        
5条回答
  •  执念已碎
    2021-01-19 10:55

    why don't you try this

    public class StringFirstTry {
    public static void main(String[] args) {
        String name;
        name = "luke";
        System.out.println("Hello, " + name + "pleased to meet you");
    }
    

    }

提交回复
热议问题