Advertisement
Nickname
spike
Registered since:
August 24, 2004
Short bio:
Java Developer in the Financial Industry. Formerly Supply Chain and Retail. Prefers thick-client apps over Web (hence Wicket is the Web Framework of choice).
Home page:
 
Total posts:
530

Forum posts by Kondwani Mkandawire:

36 pages [ Previous 1 ... 29 30 31 32 33 34 35 36 Next ]
Posted in Java Answers Forum, Jan 4, 2005, 10:18 PM
With regards to the trim() my 2 cents on it are as follows:If its compiling, then you should be pretty much set(I don't see why trim would not be working as youare expecting it to or as you explained you areexpecting it to).If NOT, then you are probably not trying trimming aString Object. I've come across Swing scenariosin which my compiler has...
Posted in Java Answers Forum, Dec 29, 2004, 10:38 PM
That's alright my baad... I had not added the mainclass to the archive...Spike
Posted in Java Answers Forum, Dec 29, 2004, 10:08 PM
> Hi,> > Set the CLASSPATH instead of the PATH.> > Regards,> Amol Brid.Hey thanks a million it worked.
Posted in Java Answers Forum, Dec 29, 2004, 4:31 AM
Hi Folks:I figured it out via a tutorial session.jar -cmf MyFile.jar ManifestFile inputFilesWhere Manifest file is a file that specifies theMain class.There is another problem I have, I get an errorthat reads:"Exception in thread "main" java.lang.NoClassDefFoundError"When I try to run the jar file.I tried to change the path variable in my...
Posted in Java Answers Forum, Dec 28, 2004, 10:22 PM
Hi Folks:I am trying to create a large Java App. andrun it as an executable (i.e. be able to double-clickand have it running)... I found out that via GoogleI can Jar it, but it doesn't say what goes fromthere. Do I just simply zip it up and create ashort cut to my desktop?Thanks in advance.Kind regards,Kondwani
Posted in Java Answers Forum, Dec 28, 2004, 10:18 PM
Hi Folks:I have a problem as follows:I have created a PrintUtilities class and haveplaced in in package SubDialogs.Printer;It compiles but when I try to import itas follows: import SubDialogs.Printer.PrintUtilities;the compiler complains that:"package SubDialogs.Printer does not exist"I have tried to set the path as...
Posted in Java Answers Forum, Oct 20, 2004, 6:20 PM
My baad again... To the poster...Apparently its a return type...I guess it could be researched on the Java API...> My bad on the use of language there... I don't think> I need to take a Java Certification course guy, I> encountered Singleton patterns in my software> engineering Soccer2003 project... And the fact> that one can have declarations...
Posted in Java Answers Forum, Oct 20, 2004, 5:59 PM
My bad on the use of language there... I don't thinkI need to take a Java Certification course guy, Iencountered Singleton patterns in my softwareengineering Soccer2003 project... And the factthat one can have declarations such aspublic Singleton instance() in Java led me tobelieve its a keyword...Once again my baad on the screw up of the...
Posted in Java Answers Forum, Oct 18, 2004, 5:16 AM
Singleton is a keyword in Java. Singleton classesare declared static on the most part (makes senseif there is only going to be one instance of it). I've never used one with threads before but if you run a google on them you are sure to find tons of examples.
Posted in Java Answers Forum, Oct 18, 2004, 5:12 AM
Your PrintWriter may not be set up right.Try using the PrintWriter that takes in theboolean argument true.PrintWriter pr = new PrintWriter(YourOutPutStream, true);In your case you have a file OutPut Stream.
Posted in Java Answers Forum, Oct 16, 2004, 4:17 PM
Sorry no one has helped you out so far, its a reallysimple snippet to understand, so I'll throw in whateverI remember (I don't usually mess with awt applet modules- but this one is simple enough), really a downer thatit has taken this long for someone to respond... Anotherthing, please format your code by indeting and maintainthe format with...
Posted in Java Answers Forum, Sep 29, 2004, 9:15 AM
Hi there:Just going through your code. I must say yourdisplay method is extremely odd.public Link displayData(int key) { //Make a variable that find the key Link inputLink = firstLink; int searchKey = 10; int searchKey1 = 30; int searchKey2 = 50; //If the first link equal null then //return null if(firstLink == null) { return null; } else {...
Posted in Java Answers Forum, Sep 29, 2004, 8:58 AM
Wha's happenin' KevinT:Check out the posting:"How i put an applet on the web, which is communicate with a database"posted by Periklis. ricky had a great response withexample code. Only difference is instead of connectingto a database, you'll open a FileStream with writecapabilities. Your applet connects to a servlet whichthen writes stuff to...
Posted in Java Answers Forum, Sep 28, 2004, 10:57 AM
> What is null interface??? Why do we ned null interfaces???I'm a little confused here. An interface simplylists behaviour. How would there be a Null interface...A Null Object would be a place in Memory with nothingor that hasn't been declared or something to thateffect. However, if all that is happening in aninterface is declaration of Method...
Posted in Java Answers Forum, Sep 28, 2004, 10:50 AM
I'm lost here. It sounds like a very oddHash table if it was some sort of simulationof a bag with a contiguous data collection(somewhat of an array) what you called Key would infact be called index (that's just preference though). The fact that its an int though makes it a little odd. Coz of confusion of the Duplicates...Brief us a little more...
36 pages [ Previous 1 ... 29 30 31 32 33 34 35 36 Next ]
Advertisement