RefreshC

Code

import java.util.Scanner;

public class RefreshC
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        
        String name;
        int num = 0;
        
        System.out.print( " Please tell me your name " );
        name = keyboard.next();
        
        if ( name.equals("Josh") || name.equals("josh"))
        {
            System.out.println( name );
            System.out.println( name );
            System.out.println( name );
            System.out.println( name );
            System.out.println( name );
            num = 999;
        }
        for ( num = num; num < 9; num = num+1)
        {
            System.out.println( name );
        }
    }
}

RefreshC

Assignment 110