Prog 109: Refresher Challenge
///Name: Ilana Levy
///Period: 5
///Program Name: A Refresher
///File Name: refresher.java
///Date Finished: 10/2/2015
import java.util.Scanner;
public class refresher2
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner( System.in );
String name;
int x = 1, top = 10;
System.out.print( "What is your name: " );
name = keyboard.next();
System.out.println();
if ( name.equals("Josh" ) )
top = 5;
for ( x = 1 ; x <= top ; x = x + 1 )
{
System.out.println( name );
}
}
}