Chatbot 10-05-2013, 11:44 PM
#1
Hello Java Programmers over the last couple hours ive been really bored so i thought about making a program that allows you to speak to the computer and the computer gives you answers depending on your answer but i cant get it to work i need suggestions for the best possible way?
any help would be grateful
Code:
/*
I HAVE NO FRIENDS
Purpose; to have a conversation with user
created by Mediocrity
Version (1.0 created 10/05/2013)
*/
import cs1.Keyboard;
public class FootballClub
{
public static void main(String[] args)
{
//this will clear the terminal window
System.out.print('\u000C');
String personsName;
String personsAnswer;
String personsAnswer2;
System.out.println("Hello there what's your name");
personsName = Keyboard.readString();
System.out.println("hello " + personsName);
System.out.println("So " + personsName + " what football team do you support ");
personsAnswer = Keyboard.readString();
if (personsAnswer == "none");
{
System.out.println("Oh im guessing you dont like football then");
System.out.println("Well if you dont like football we can't be friends sorry. BYE!");
}
personsAnswer = Keyboard.readString();
System.out.println("how long have you supported " + personsAnswer);
personsAnswer2 = Keyboard.readString();
System.out.println("Oh WOW " + personsAnswer2 + " that is a long time ");
}
}
any help would be grateful
![Smile Smile](https://sinister.ly/images/smilies/set/smile.png)
<?php echo "Very inactive at this current moment in time"; ?>
![[Image: Z8KDe.png]](http://i.imgur.com/Z8KDe.png)
![[Image: Z8KDe.png]](http://i.imgur.com/Z8KDe.png)