public class Person {String name;public Person(String personName) { name = personName;}public String greet(String yourName) { return String.format("Hi %s, my name is %s", name, yourName);}}
添加回答
举报
0/150
提交
取消