Assignemnt #109
Code
///Name: Joshua Bautista
///Period: 6
///Date: 5/9/2016
import java.util.Scanner;
public class RC
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
String name;
System.out.println();
System.out.print( "What is your name: " );
name = keyboard.next();
System.out.println();
for ( int times = 0; times < 10; times = times + 1 )
{
if ( name.equals("George") )
{
times = times + 1;
}
System.out.println( name );
}
System.out.println();
}
}
Picture of the output