Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class tvim {
- static Scanner input=new Scanner(System.in);
- public static void main(String[] args) {
- char First,Second;
- System.out.println("Put the Letter ");
- First=input.next().charAt(0);
- Second=(char)(First +1);
- if(First=='z'){
- System.out.println("A");
- }else{
- System.out.println(Second);
- }}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement