Assignemnt #108 and Refreasher

Code

    ///Name: Daniel Tiffany-Appleton
    ///Period: 7
    ///Program Name: Refreasher
    ///File Name: Refreasher
    ///Date Finished: 3/17/16
    
    import java.util.Scanner;
    
    public class Refreasher
    {
        public static void main( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
            
            System.out.print("What is your name: ");
            String name = keyboard.next();
            System.out.println(" ");
            
            if(name.equals("Josh"))
            {
                for(int n=1; n<=5; n++)
                {
                    System.out.println(name);
                }
            }
               
            else
            {
                for(int n=1; n<=10; n++)
                {
                    System.out.println(name);
                }
            }
            
        }
    }

    

Picture of the output

Assignment 108