Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Name {
- private String fullName, first, last;
- public Name() //Default Constructor
- {
- fullName = first + " " + last;
- first = "FirstName";
- last = "LastName";
- }
- public Name(String n, String f ,String l)
- {
- fullName = n;
- first = f;
- last = l;
- }
- public void nameSet(){
- int name = fullName.indexOf(" ");
- String new = fullName.substring(name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement