Created
May 30, 2013 03:26
-
-
Save adam-phillipps/5675556 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************* | |
* Name: Adam Phillipps | |
* Assignment: A01 | |
*******************************************************/ | |
import java.util.Scanner; | |
public class A01 | |
{ | |
public static void main(String[] args) | |
{ | |
// part1 | |
System.out.println("o o o o o"); | |
System.out.println("o . . o"); | |
System.out.println("o . . o"); | |
System.out.println("o . . o"); | |
System.out.println("o o o o o"); | |
System.out.println(); | |
// part2 | |
String athlete; | |
System.out.print("Who's your favorite athlete?: "); | |
Scanner input = new Scanner(System.in); | |
athlete = input.nextLine(); | |
System.out.print(athlete); | |
System.out.printf("What country is %s from?: " athlete); | |
// Scanner input = new Scanner(System.in); | |
// String country = input.nextLine(); | |
// System.out.printf("My favorite athlete is %s from %s%n." | |
// athlete, country); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment