Skip to content

Instantly share code, notes, and snippets.

@adam-phillipps
Created May 30, 2013 03:26
Show Gist options
  • Save adam-phillipps/5675556 to your computer and use it in GitHub Desktop.
Save adam-phillipps/5675556 to your computer and use it in GitHub Desktop.
/*******************************************************
* 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