Assignment 109

code

///Name: Mutsu Osoegawa
///Period: 7
///Project Name: Refresher Challenge
///File Name: RefresherChallenge.java
///Date: 4/15/2016

import java.util.Scanner;

public class RefresherChallenge
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        String name;
        System.out.print( "Your name: " );
        name = keyboard.next();
        System.out.println();
        if ( name.equals("Josh"))
            {
                for ( int x = 0; x <= 5; x++)
                {
                    System.out.println( "Josh" );
                }
            }
        while ( !name.equals("Josh"))
        {
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            System.out.println(name);
            name = "Josh";
        }
    }
}