> Beginner Java Program Assignment Help?

Beginner Java Program Assignment Help?

Posted at: 2014-12-18 
import java.util.Scanner;

/**

* Save file as Main.java

*

* @author Some guy on Yahoo Answers

* @version 0.1 (2014-09-04)

*/

Public class Main {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

System.out.print("What is your name: ");

String name = input.nextLine();

System.out.print("What is your age: ");

String age = input.nextLine();

System.out.print("What is your gender (M or F): ");

String gender = input.nextLine();

System.out.println("1. Name: " + name + '\n' + "2. Age: " + age + '\n' + "3. Gender: " + gender);

}

}

For my entry level programming course my first assignment is the following:

Write a java program that prompts the user for the following three values. Use appropriate

data types for each input.

1. Their name.

2. Their age.

3. Their gender (M or F).

Display this information back to the user with descriptive text.

I know it should be very simple program, but i am stuck and don't even know how to begin. I would appreciate any help from anyone willing to help me program this. Thank You.