Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String compareAlpghabet(String A, String B){
- if(Character.isUpperCase(A.charAt(0)) && Character.isUpperCase(B.charAt(0)))
- return A.charAt(0) > B.charAt(0) ? B : A;
- else return "Throw Exception";
- }asdad
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement