Assignemnt #108 and A Refresher
Code
///name: Mark Katz
///period: 6
///program name: A Refresher
///file name: refresher.java
///date finished: 4/22/15
import java.util.Scanner;
public class refresher
{
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);
}
}
System.out.println("");
}
}