Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class NameProgram
- {
- public static void main(String[] args)
- {
- String NameFirst = "al";
- String NameLast = "maruf";
- String WholeName = NameFirst + NameLast;
- int count = NameFirst.length();
- //if (NameFirst.length() == 1) return NameFirst.toUpperCase(0);
- System.out.println(NameFirst);
- //System.out.println(WholeName);
- System.out.println("# of letters in first name = " + count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement