///Name: Cody Swain ///Period: 6 ///Project Name: refresher2 ///File Name: refresher2.java ///Date: 5/2/16 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); } } }