Search:

Type: Posts; User: javapenguin

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    7,474

    Re: Help with Nested Loops

    import java.util.Scanner;

    /**
    *
    * @author uuuuuuu
    */
    public class Main {

    /**
    * @param args the command line arguments
  2. Replies
    3
    Views
    7,474

    Re: Help with Nested Loops

    It's possible that your value for months is lost after that for loop ends. It either will print out 12 when you say
    System.out.println("Number of months" + months); or it will claim it hasn't been...
Results 1 to 2 of 2