Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import java.util.*;
  2. public class tvim {
  3. static Scanner input=new Scanner(System.in);
  4. public static void main(String[] args) {
  5.  
  6. char First,Second;
  7. System.out.println("Put the Letter ");
  8. First=input.next().charAt(0);
  9. Second=(char)(First +1);
  10. if(First=='z'){
  11. System.out.println("A");
  12. }else{
  13. System.out.println(Second);
  14.  
  15. }}
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement