Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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: 17260

Moving to Java In General (Beginner) forum.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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