- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
this is me in a nutshell, "help! i'm in a nutshell!!"
- Interests
- listening to music, arguing about the fia's decision to penalise hamilton, programming, driving, eating…
- PC Specs
- my mainframe is black and has 2gigs of space and 160gigs of memory. my screen is black too and is several…
28 Posted Topics
Re: ok, what i've done on my little chat thingy is quite "basic". i have my server running and then a client would log in and the server would take the username and see if anyone is connected with that name yet(stores them in a vector - too busy at work … | |
Re: 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 clients, you'll do exactly the same thing as you were doing. i'm … | |
Re: 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 one of your own exceptions which will … | |
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 unused) space left. i have scoured the internet for ideas and now i'm … | |
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 "_h" has the history of previous shift sales. the two tables both contain … | |
![]() | Re: 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 xp pro sp3 disks, an xp pro sp2 disk and an xp pro sp3 … |
Re: 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 string to an array. also, you can use StringTokenizer … | |
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 the above statement was my first idea, but that didn't add them. just got a long … | |
Re: 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 again, you want the file to be closed off and the label at the top … | |
Re: instead of doing an if...else thing, perhaps a "switch" will be better? [code=java] private String getNumber( int i ) { switch ( i ) { case 0 : return "zero"; case 1 : return "one"; . . . } [/code] just for some reason i find doing more than one … | |
Re: 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: [CODE] import java.util.Scanner; // scanner for input public class Payrollprogram { int id, pay, value... etc; //list the integers that the program … | |
Re: 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 Integer class. am i understanding you correctly there? | |
Re: 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 "day--". | |
Re: i imagine he wants to get a list of all the processes running, like task manager? | |
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 reading the rest and writing it to clients.tmp. after i have … | |
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 want to install "virus98" on (i've got an old game that doesn't … | |
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): Internal Error 2753: Savscan.exe.3333244e_f73a_407a_b74a_569a9e09d5b3 you've dug norton out of the registry, reinstalled it … | |
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 blueish screen that has "windows xp" just to the right of the … | |
Re: [QUOTE=mahes_]i know that..i was asking for smth like this... import java.util.Scanner Public class..{ public static void main(...) { variable; Scanner sc = new Scanner(System.in); Switch(choice) { case1 : System.out.print("ans" + mulTest()); } public static void mulTest() { }[/QUOTE] i don't think that would work. java is going to have a … | |
good day, i upgraded a pc from virus 98 to xp pro and i'm stuck with a freaking outlook express that doesn't work. if you open it, it says computer is out of memory or disk is full. the error number (i'm assuming it's the error number) is "0x80012ce, 3". … | |
Re: [QUOTE=server_crash]JButtons and KeyListeners.[/QUOTE] slap some jlabels on them, then put them on a jframe and some jpanels. post your code here and we'll point at out screens and say that should stay... that should go... and so on. | |
Re: copied to my pc, compiled, changed [code] public String getAddEmployee(String id, String name, String hireDate, double pay) { return addEmployee = new; } [/code] to this: [code] public String getAddEmployee(String id, String name, String hireDate, double pay) { return addEmployee; } [/code] seems to work fine. didn't check if it … | |
Re: you could have an int which will say how many spaces to use and then while you are going through the loop and sticking down stars, you decrease the amount of spaces by one if the piramid gets fatter and then increase the spaces and decrease the amount of stars … | |
hi guys. got a problem with norton. lady openen an email with an attachment and hey presto! norton disabled. eventually found and deleted the virus (wiwshost.exe - trojan.tooso.j) by scanning her harddrive with my pc. ran one of those tools from symantec as well, but it found nothing. now i'm … | |
Re: [QUOTE=jwenting] Aren't we lucky it's so well documented in the API docs then?[/QUOTE] that's why i don't like c++. doesn't have documentation like java. studying computer science through correspondence and i have to do that. | |
| |
Re: try getting the model of the combobox and then getting the selected item? i'll check my stuff and see what i do. | |
Re: chech this out, hopefully it's what you want. ;) [url]http://java.sun.com/developer/onlineTraining/Programming/JDCBook/advprint.html[/url] |
The End.