This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 17271

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: compton
It's not a secret anymore!