Search Results

Showing results 1 to 40 of 57
Search took 0.01 seconds.
Search: Posts Made By: Easter Bunny
Forum: Windows Software Jun 12th, 2009
Replies: 0
Views: 632
Posted By Easter Bunny
ok, now i'm no n00b, so i checked the ram and harddrive space. there is more than enough memory (1gb total and only about 300mb used) and harddrive (can't remember exactly, but it was more than 10gb...
Forum: Java Nov 4th, 2008
Replies: 2
Views: 873
Posted By Easter Bunny
thanks. sorry about being out of topic, that's why i added the bit about resultset and arrays so it would seem less out of place. :)

also doesn't look like many people roam the sql threads and i...
Forum: Java Nov 4th, 2008
Replies: 2
Views: 873
Posted By Easter Bunny
ok, i have to get two mysql tables to work as one. one is called sale_mast_data and the other is called sale_mast_data_h. they both have the same columns. the only difference is that the one with the...
Forum: Windows NT / 2000 / XP Oct 15th, 2008
Replies: 5
Views: 1,857
Posted By Easter Bunny
does your error message look something like the picture of the error i get? that's what i've been getting on two different computers. i'm upgrading from xp home sp2 to xp pro. i've tried 2 different...
Forum: Java Oct 11th, 2008
Replies: 4
Views: 1,827
Posted By Easter Bunny
StringTokenizer allows you to take a string and break it up into "tokens".

eg:

if you have this string:


String str = "i+have+a+banana+in+my+wallet"
Forum: Java Oct 11th, 2008
Replies: 4
Views: 1,827
Posted By Easter Bunny
i'm trying to run your code in my head (i'm not at my pc), but i'm in weekend mode, so it's not working. :)

if you check the apis for String, you see there's a method that will convert a normal...
Forum: Java Sep 22nd, 2008
Replies: 3
Views: 656
Posted By Easter Bunny
crud, i must have edited this twice and posted replies 6 times to this thread. my opera mini is full of crap these days. maybe it's just because i'm using an ericsson?
Forum: Java Sep 22nd, 2008
Replies: 3
Views: 656
Posted By Easter Bunny
ahh yes, the group thing. found it on that mysql query browser too.

thanks. i'll go sit in the corner and wear my n00b hat.
Forum: Java Sep 22nd, 2008
Replies: 3
Views: 656
Posted By Easter Bunny
i have a small app that reads a forecourt program's database. i want to get the current shift's info from that and display/print it out.

SELECT name, liters, amount FROM salemast ORDER BY name
...
Forum: Java Sep 18th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
ok, check your grad students file. does it have anything in it?
Forum: Java Sep 17th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
your code, including comments on the problem area (by me):


import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;

import...
Forum: Java Sep 16th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
that message seems to be coming from your catching of the end of file exception. did you tell the FileOutputStream you want to append to the end of the end?

can you upload your code as you have it...
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
ummm... nope. sorry. :) i've just been assuming the indents go all funny when he posts it.
Forum: Java Sep 15th, 2008
Replies: 9
Views: 2,527
Posted By Easter Bunny
yes, if you fix the getHundreds method to what i posted, then you will get the right number.
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
do you still have the "public static void main" at the end? it usually pops up with that error when you're trying to run a class that doesn't have the main method in it.
Forum: Java Sep 15th, 2008
Replies: 1
Views: 999
Posted By Easter Bunny
ok. you haven't told the program you are going to use all those variables that you have in there. you need to start off by listing your variables:


import java.util.Scanner; // scanner for input...
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
what does the code look like now? you're not running only the code i stuck up did you? sorry, bad explanation i gave. :)

you should use your StudentRead class, but then just take out the...
Forum: Java Sep 15th, 2008
Replies: 9
Views: 2,527
Posted By Easter Bunny
all you need to do to test the methods, is to ask the user to give you a number, then you write that number out in words, but without saying thousands or hundreds. just tell the user he entered "one...
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
ok, and the problem with the closing of the program lies in the actionPerformed method:

you tell it to read from gradStudentInStream and set the text fields to what you have read, then directly...
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
oh, you also still need to catch an IOException in StudentRead.

and you're not writing an id to the file for GraduateStudentsButton.
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
!!problem found!!

when you create a FileOutputStream, you must use the constructor that has the "append" boolean in it (check the java docs). i was making the same n00b mistake two weeks ago....
Forum: Java Sep 15th, 2008
Replies: 22
Views: 1,527
Posted By Easter Bunny
i think i'm following:

when you click the button, you read a line from the file and stick the student's details in the textfields. when you've reached the last student and you click the button...
Forum: Java Sep 15th, 2008
Replies: 1
Views: 483
Posted By Easter Bunny
are the distances saved in a string array as well, or are they entered as strings by the user? to convert a string to an integer so that you can add and subtract etc, you should take a look at the...
Forum: Java Sep 14th, 2008
Replies: 8
Views: 690
Posted By Easter Bunny
not quite, good point you made there. also good that you made me remember which one does what. ;)

so mrjoli, how's the project going? also, remember to put your return statement at the end of the...
Forum: Java Sep 14th, 2008
Replies: 8
Views: 690
Posted By Easter Bunny
a simple method:


public int getNumber()
{
int a = 10;
int b = 2;
int c = a * b;

return c;
Forum: Java Sep 14th, 2008
Replies: 8
Views: 690
Posted By Easter Bunny
yes, i remembered that bit, but couldn't remember which way around it worked.

but in his program, he says:
[code]
day = --day;
[\code]
where it would be the same as:
[code]
day--;
[\code]
Forum: Java Sep 14th, 2008
Replies: 8
Views: 690
Posted By Easter Bunny
what exactly is happening there? i did notice that i didn't see a return in your code there.

also (this won't change the way the program functions), instead of saying "day = --day", you can say...
Forum: Java Sep 13th, 2008
Replies: 2
Views: 426
Posted By Easter Bunny
i imagine he wants to get a list of all the processes running, like task manager?
Forum: Java Sep 13th, 2008
Replies: 9
Views: 2,527
Posted By Easter Bunny
ok, you can worry about the caps when the program works. for now see if you can write out "one two three four".

when you have that, work at get the last two digits to thiry four. that's when...
Forum: Java Sep 12th, 2008
Replies: 9
Views: 1,749
Posted By Easter Bunny
ok, what you need to do, is to split them up. keep the main method in Payrollprogram and then everything to do with the details of a client, you keep in a different class.

to then access the...
Forum: Java Sep 12th, 2008
Replies: 9
Views: 2,527
Posted By Easter Bunny
oh, and when you use the "case" thing and your number is a double digit, then the last option would be "default".

check the example here:
...
Forum: Java Sep 12th, 2008
Replies: 9
Views: 2,527
Posted By Easter Bunny
instead of doing an if...else thing, perhaps a "switch" will be better?


private String getNumber( int i )
{
switch ( i )
{
case 0 : return "zero";
case 1 : return...
Forum: Java Sep 10th, 2008
Replies: 1
Views: 350
Posted By Easter Bunny
nevermind, i figured it out.

solution:

instead of creating the streams to the file in the constructor, i now create the streams in the methods when they're called and as soon as i am done, i...
Forum: Java Sep 10th, 2008
Replies: 1
Views: 350
Posted By Easter Bunny
i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on...
Forum: Viruses, Spyware and other Nasties Jun 22nd, 2006
Replies: 9
Views: 16,068
Posted By Easter Bunny
when i copied mp3's to my dad's harddrive (connected on my pc) i got this window popping up (this was quite some time ago). then about 5minutes ago i copied "format.exe" to a stiffy for a machine i...
Forum: Windows NT / 2000 / XP Nov 8th, 2005
Replies: 2
Views: 3,049
Posted By Easter Bunny
ahhh... was at home yesterday and for some reason i thought about it again(at around 8pm). came to work and nobody had tried changing the on it. just thought of that pc and how odd it was that i...
Forum: Windows NT / 2000 / XP Nov 4th, 2005
Replies: 2
Views: 3,049
Posted By Easter Bunny
i don't know how to explain it in the title, but this is what happens:

at startup, you get to the loading screen(windows xp pro with the three moving blocks). as soon as that's done, you get the...
Forum: Java Oct 5th, 2005
Replies: 6
Views: 8,250
Posted By Easter Bunny
i don't think that would work. java is going to have a hernia about you trying to use "System.out.print("ans" + mulTest());". mulTest() is a void method, and the wayyou are using it there is as if it...
Forum: Viruses, Spyware and other Nasties Sep 14th, 2005
Replies: 1
Views: 3,891
Posted By Easter Bunny
if you get that error, and it mentions that "savscan.exe" had some error and gives you a long number reference thing - i can't remember what it was, but it looks like this(or might even be this):
...
Forum: Java Sep 5th, 2005
Replies: 3
Views: 4,490
Posted By Easter Bunny
what kind of error checking? like when the user tries to put a king on a 7? you can use a method to check that and if the user is being a moron, then you can display a joptionpane or you can throw ...
Showing results 1 to 40 of 57

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC