Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Seems like I'm forgetting someone

Name: Anonymous 2013-03-08 0:22

Whatever happened to Wokon?

Name: Anonymous 2013-03-08 0:28

Hello, I'm not so good at programming and can't tell why this isn't working. Whatever I input, it will always go straight to the else statement.

    public void pizzaIntro()
    {
        Scanner user_input = new Scanner(System.in);
        String user_command = "null";
        String apology = "I'm sorry it appears there has been some kind of mistake in your order.";
        System.out.println("Welcome to " + cM + " here we strive to deliver excellent services to all our customers!");
        System.out.println("The current prize for pizza is $" + bP + " and an extra $" + tP + " per topping.");
        System.out.println(); System.out.println();
        while(user_command != "exit")
        {
            System.out.print("Would you like toppings?(yes/no):");
            user_command = user_input.next();
            if(user_command.toLowerCase() == "yes")
            {
                System.out.println("Good Eat Your Pizza.");
            }
            else if (user_command.toLowerCase() == "no")
            {
                System.out.println("Well Fuck You Too Then!");
            }
            else
            {
                System.out.println(apology);
                System.exit(1);
            }
        }
        pic1.show();
    }

Name: Anonymous 2013-03-08 0:36

>>1
I'm new as hell on this board so I have no Idea who that is

Name: Anonymous 2013-03-08 2:52

>>3
he ent da bog?!

Name: Anonymous 2013-03-08 9:47

>>3
Well shut the fuck up then.

Name: Anonymous 2013-03-08 10:04

>>2
It had its own problems, but then you posted it on /prog/. Now your program is cursed forever and you must now write a new one. From scratch. Make sure that you copy and paste no part from the tainted one.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List