//colin hinton //5th period //Refresh.java //5/2/2016 import java.util.Scanner; public class Refresh { public static void main (String [] args) { Scanner kb = new Scanner(System.in); String name; System.out.println("Please enter your name: "); name = kb.next(); if (name.equals("josh")) { for (int x = 5; x > 0; x = x - 1) { System.out.println(name); } } else { for (int y = 10; y > 0; y = y - 1) { System.out.println(name); } } } }Picture of the output