This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes compton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compton" Watch "compton" New topic


kofi ofei
Ranch Hand

Joined: May 22, 2005
Posts: 39
the programme below as 1 error in it. i was wondering if you could help me solve this. thanks

/** Array initialization */
public class compton
public static void main(String[] args)
int [] days =
System.out.print("Month number...");
int month = (int) wellHouseInput.readNumber();
if(month < 1 || month > 12)
System.out.println("Not a valid month number");
} else {
System.out.print("That month has ");
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17275

Moving to Java In General (Beginner) forum.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
As with your other post, quoting the error message will help us figger it out.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: compton
It's not a secret anymore!