// Week 3 Checkpoint1: Payroll Program Part 2
// Due May 04, 2012
// Created by: Kennith Adkins
import java.util.Scanner;
public class Assignment1
 {
    public static void main ( String[] args )
    {
        Scanner input = new Scanner(System.in);
        // Variables
        String employeeName = null;
        int hours;
        double rate;
        double pay;
        while ( employeeName != "stop")
        {
        // Request information from user
        System.out.print ( "Employee Name: ");
        employeeName = input.nextLine();
        System.out.print ( "Hourly Rate: ");
        rate = input.nextDouble();
        System.out.print ( "Number of Hours worked this week: ");
        hours = input.nextInt();
        // Calculate pay
        pay = rate * hours;
        // Display information
        System.out.printf ("%s will get paid $%.2f this week.\n", employeeName, pay);
        }
    }
}
When I run the program it runs fine. When it hits the loop and repeats, Employee Name: and Hourly Rate seem to bunch up. Also how would I get it to immediately stop after typing stop as employee Name?
 
     
    