Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner input = new Scanner(System.in);
  7.         String str = input.nextLine();
  8.         String another = str.replace('a', 'A');
  9.         if (str.equals(another)) {
  10.             System.out.println("No a symbols");
  11.         } else {
  12.             System.out.println(another);
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement