I need help getting the user to enter 10 currencies instead of 1
<p>I have got the code below that when the user Enters 1-5 from the keyboard it converts GBP to one of the selected currencies. At the moment it takes 1 user input and converts it, but I need it too take 10 user inputs and convert all 10 to the currency the user selects. I believe a for loop is needed something like</p>

<pre><code>for( int i = 0; i &lt; 10; i++ )
</code></pre>

<p>is needed. Can anyone help??</p>

<p>Here is the code I have so far:</p>

<pre><code>public class test {
    public static void main(String[] args) {
        currency();
    }

    public static void currency(){
        int input;



        @SuppressWarnings("resource")
        Scanner keyboard = new Scanner(System.in);


        System.out.println("1. Euros");
        System.out.println("2. USD ");
        System.out.println("3. Yen");
        System.out.println("4. Rupees");
        System.out.println("5. Exit ?");

        input = keyboard.nextInt();

        if(input == 1){
            float XEUR = (float) 1.19;
            System.out.println("Enter 10 GBP values to be converted to EUR:");
            System.out.println("EUR: " + keyboard.nextFloat() * XEUR);

    }else if(input == 2){
            float XUSD = (float) 1.26;
            System.out.println("Enter 10 GBP values to be converted to USD:");
            System.out.println("USD: " + keyboard.nextFloat() * XUSD);

        } else if (input == 3){
            float XYEN = (float) 145.02;
            System.out.println("Enter 10 GBP values to be converted to Yen:");
            System.out.println("YEN: " + keyboard.nextFloat() * XYEN);

        }else if(input == 4){
                float XRUP = (float) 84.86;
                System.out.println("Enter 10 GBP values to be converted to Rupees:");
                System.out.println("USD: " + keyboard.nextFloat() * XRUP);
        }else if(input == 5){
                    System.out.println("Exiting");

      }
    }   
}
</code></pre>