java-带参带返回

public class test14 {
public String show(String name) {
return “欢迎您,”+ name +"!";
}

public static void main(String[] args) {
    test14 hello = new test14();
    hello.show("歌谣");
    System.out.println(hello.show("歌谣"));
}

 

posted @ 2022-06-22 22:55  前端导师歌谣  阅读(23)  评论(0)    收藏  举报