Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class StringColor {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- String color = scan.nextLine();
- if(color.equals("green")){
- System.out.println("BALKAN");
- }else if(color.equals("red")){
- System.out.println("CSKA");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement