Super simple Conversation Program.
Code:
import java.io.*;
class Conversation {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int myAge = 15;
System.out.println("What is your name?");
String name = in.readLine();
System.out.println("Your name is " + name + ", great name.");
System.out.println("How old are you?");
String age = in.readLine();
System.out.println("You are " +age+".");
System.out.print("If you added our ages together we would be" + (age + myAge) + " :)");
System.out.println("What is your favorite hobbie?");
String hobby = in.readLine();
System.out.println("What do you like about " + hobby+"?");
String otherHobby = in.readLine();
System.out.println("So what you're saying about " + otherHobby + " is neat.");
System.out.println("Well it was nice talking to you");
System.out.println("Please rate this program 1 - 10");
System.out.println("Type a number:");
String rating = in.readLine();
int value = Integer.parseInt(rating);
if (value > 5) {
System.out.println("You voted: "+value+".");
} else {
System.out.println("You voted: "+value+".");
}
System.out.println("End of program");
}
}