/// Name: Kyle Ivy /// Period: 5 /// Program Name: Refresher2 /// File Name: Refresher2.java /// Date Finished: 4/20/2016 import java.util.Scanner; public class Refresher2 { public static void main( String[] args) { Scanner kb = new Scanner(System.in); String name; int a = 10; System.out.print("Your name: "); name = kb.next(); if (name.equals("Josh")){ a = 5; } for ( int b = 0; b < a; b++ ){ System.out.println(name); } } }