When I run my project I get this error.
<terminated, exit value: 0>C:\Program Files\EasyEclipse Desktop Java 1.2.1\jre\bin\javaw.exe (Jun 12, 2007 7:50:41 AM)
What is the cause of this.
Do you need to see my code?
nomad
4 9220
When I run my project I get this error.
<terminated, exit value: 0>C:\Program Files\EasyEclipse Desktop Java 1.2.1\jre\bin\javaw.exe (Jun 12, 2007 7:50:41 AM)
What is the cause of this.
Do you need to see my code?
nomad
here is my code for this project. - import java.util.*;
-
-
-
-
public class HolidaySked {
-
-
BitSet sked;
-
-
-
-
public HolidaySked() {
-
-
sked = new BitSet(365);
-
-
int[] holiday = { 1, 20, 43, 48, 53, 116, 132, 147, 166, 167,
-
-
189, 245, 287, 316, 328, 360 };
-
-
for (int i = 0; i < holiday.length; i++) {
-
-
addHoliday(holiday[i]);
-
-
}
-
-
}
-
-
-
-
public void addHoliday(int dayToAdd) {
-
-
sked.set(dayToAdd);
-
-
}
-
-
-
-
public boolean isHoliday(int dayToCheck) {
-
-
boolean result = sked.get(dayToCheck);
-
-
return result;
-
-
}
-
-
-
-
public static void main(String[] arguments) {
-
-
HolidaySked cal = new HolidaySked();
-
-
if (arguments.length > 0) {
-
-
try {
-
-
int whichDay = Integer.parseInt(arguments[0]);
-
-
if (cal.isHoliday(whichDay)) {
-
-
System.out.println("Day number " + whichDay +
-
-
" is a holiday.");
-
-
} else {
-
-
System.out.println("Day number " + whichDay +
-
-
" is not a holiday.");
-
-
}
-
-
} catch (NumberFormatException nfe) {
-
-
System.out.println("Error: " + nfe.getMessage());
-
-
}
-
-
}
-
-
}
-
Are you sure you're passing at least one argument to your main() method?
kind regards,
Jos
Are you sure you're passing at least one argument to your main() method?
kind regards,
Jos
never mind I got it....
never mind I got it....
So what was the problem then? Maybe others are interested in your solution.
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Gene Mat |
last post by:
Hi, I'm trying to build a simple Perl program to get a list of
newsgroups. Here's what I have...
#!/opt/local/bin/perl
use Net::NNTP;
$nntp = Net::NNTP->new("nntp.perl.org",Debug,10);...
|
by: matthew_carver |
last post by:
Hello,
I have an ASP page that loops through a SQL Server 2000 table, then
downloads an Excel sheet the users can save, etc. Works fine, except, I
see that in one particular "comments" field the...
|
by: meyvn77 |
last post by:
My update query updates about 50 columns and they all have the same
format: (Im using ADP to interact with the SQL Server)
UPDATE dbo.GIS_EVENTS_TEMP
SET VEH1TYPE =
(SELECT VEHICLETYPE...
|
by: Tyson |
last post by:
Hi
Very novice sorry. Trying to add a simple query to a textbox...I am
getting Enter Parameter Value
I have a Form called (frm_tbl_RR_Datacapture). With a series of
Textboxes.
I am wanting...
|
by: Mark C via AccessMonster.com |
last post by:
Ok bare with me on this one....
I have 1 table "Expenses" that holds about 50 fields broken down into sub
categories.
I have a Subform tied to a main form so that when I pull up a client it...
|
by: pbmanikandan |
last post by:
Horrible error.
I use a function called cleanse company name that "removes" some strings if present from a string that is passed to it.
In a procedure, I do the following.
INSERT into table1...
|
by: amoldiego |
last post by:
Hi ,
I created one procedure ...When i called that procedure ..I get ORA-06502: PL/SQL: numeric or value error error...
All the in parameter and there datatype passed are correct ,,,,still I got...
|
by: preeti13 |
last post by:
Hi guys i am here with my another probelm please help me.trying insert the value into the data base but getting the null value error .I am getting thsi error
Cannot insert the value NULL into...
|
by: michels287 |
last post by:
With a single record in my table, I can use this code:
Private Sub Command1_Click()
Set cn = New ADODB.Connection
cn.Open "Provider=MSDASQL.1;Persist Security Info=False;" & _
"Data...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| | |