Assignemnt #109
Code
/// Name: Holden Ganch
/// Period: 7
/// Program Name: sixtieth Program
/// File Name: EnterPIN.java
/// Date Finished: 10/5/2015
import java.util.Scanner;
public class Refresh
{
public static void main( String[] args )
{
Scanner kb = new Scanner(System.in);
String name;
System.out.print("What is your name: " );
name = kb.next();
System.out.println("");
if (name.equals("josh"))
{
for (int n = 0; n < 5; n++)
{
System.out.println(name);
}
}
else
{
for (int n = 0; n < 10; n++)
{
System.out.println(name);
}
}
}
}
Picture of the output