Assignemnt #109 and Refresher Challenge

Code

/// Name: Raff Lisbona
/// Period: 6
/// Program Name: Refresher Challenge
/// File Name: RefresherChallenge.java
/// Date Finished: 4/19/2016

import java.util.Scanner;
public class RefresherChallenge
{
    public static void main(String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        String name;
        
        System.out.print("Your name: ");
        name = keyboard.next();
        
        int a = 10;
        if ( name.equals("Josh"))
            a = 5;
        for ( int n = 1; n <= a; n++ )
            System.out.println(name);
    }
}
    

Picture of the output

Assignment 8