What the hell is wrong with my code output?
I'm using netbeans IDE 8.1 I made an app because i wanted to practice loops, and class interactions. and well, it didn't go as expected. this app was supposed to add 5 on "speed" when typed "Faster" -10 speed when typed "Slower" change the "Color" to "Black" and when i type "Check" it prints it out and "End" exits the program. but my app keeps refusing to give me output until it gives me glitched outputs. Help is appreciated. package vehiclesimulator; import java.util.Scanner; public class Bycicle { static int speed = 0; static int size = 10; static int increment = 5; static int decrement = 10; static String color = "yellow"; static void Printstates(){ System.out.println("speed:" + speed + " size:" + size + " color:" + color);} static void speedUp() { String INPUT; INPUT = scan.nextLine(); speed = speed + 5; } static void applyBrakes() { String INPUT; INPUT = scan.nextLine(); speed = speed - 10; } static void Paint(String PaintColor){ String INPUT; INPUT = scan.nextLine(); color = PaintColor; } static String Black; public static Scanner scan = new Scanner(System.in); private static void programStart(){ String INPUT; INPUT = scan.nextLine(); scan.nextLine(); if("Faster".equals(INPUT)){ speedUp(); Printstates(); } if("Slower".equals(INPUT)){ applyBrakes(); Printstates();} if("Paint".equals(INPUT)){ Paint(Black); Printstates();} if("Check".equals(INPUT)){ Printstates();} if("End".equals(INPUT)) System.exit(0); } public static void main(String[]args) { programStart(); String INPUT; INPUT = scan.nextLine();