ストリング
greeting = new String("hello");
String greeting = "hello";
ストリングの連結
1.info("name: " + p.getName());
連結の演習concat()
// private String name;
private String firstName;
private String middleName;
private String lastName;
public String getFullName {
return getfirstName() .concat(" ").concate(getMiddleName().concat(" ").concat(getLastName);
oop execution iteration# " + aa);
l.info("Name: ").concat(" ").concat(p.getName());
l.info("Age:").concat(" ").concat(p.getAge());
l.info("Height:").concat(" ").concat(p.getHeight());
l.info("Weight:").concat(" ").concat(p.getWeight());
l.info("Eye Color:").concat(" ").concat(p.getEyeColor());
l.gender("Gender:").concat(" ").concat(p.getGender());
aa++
}
}
Support Group