Assignment #109 and Refresher Challenge

Code

    ///Name: Tim Gibson
    ///Period: 6
    ///Project Name: Refresher Challenge
    ///File Name: RefresherChallenge.java
    ///Date Finished: 12/8/15
        
    import java.util.Scanner;
    
    public class RefresherChallenge
    {
        public static void main (String[] args )
        {
            Scanner kb = new Scanner(System.in);
            
            String name;
            int x = 10;
            
            System.out.print("Your Name: " );
            name = kb.next();
            System.out.println();
            
            if (name.equals("Josh"))
                x = 5;
                
            for ( int n=0; n < x; n++)
            {
                System.out.println(name);
            }
        }
    }
    

Picture of the output

109