Assignemnt #108 and A Refresher
Code
///Name: Ben Borglin
///Period: 6
///Program name: A refresher
///File name: Refesher.java
///Date Finsihed: 1/27/16
import java.util.Scanner;
public class Refresher
{
public static void main(String[] args)
{
String name;
Scanner kb = new Scanner(System.in);
System.out.print("What is your name? ");
name = kb.next();
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);
}
}
}