Forum: Java Jul 17th, 2009 |
| Replies: 1 Views: 460 Hey guys,
a long shot in the dark, but I've googled around for this and so far not promising! All the threads / pages / wikis etc I've read are all pre 2005 and state it can't be done yet. I... |
Forum: Java Jul 16th, 2009 |
| Replies: 3 Views: 319 But I'd like to iterate through all the elements in the enum list. |
Forum: Java Jul 15th, 2009 |
| Replies: 3 Views: 319 Hey guys,
I'm coding a phonebook viewer using J2ME, now the following code appears to break when the hasMoreElements gets fired! The exception is a arrayoverflow type on. Not sure why though
... |
Forum: Java Jul 15th, 2009 |
| Replies: 2 Views: 304 Hey guys,
Is it possible for a J2ME application to access the devices phonebook? I've been googling but nothing much as turned up.
John |
Forum: Java Jul 2nd, 2009 |
| Replies: 1 Views: 206 Hey guys,
I've got a mobile application written which can browse through directories on the handheld device. This links to a C# application on windows via a usb cable (Simple phone cable). now... |
Forum: Java Jul 1st, 2009 |
| Replies: 2 Views: 694 Hey guys,
I'm trying to access the file system of a Nokia device which operates on Symbain OS 60. Is this possible with Java? I've googled around but can't seem to find much... Most likely my... |
Forum: Java Oct 27th, 2008 |
| Replies: 3 Views: 398 Woah!! Woah!! Woah!! First things first, don't catch Exception unless you really need to! Exception will catch *all* exceptions. I'd rather create my own exception class which inherits the base... |
Forum: Java Oct 27th, 2008 |
| Replies: 8 Views: 931 Yeh compile it and use the *.jar file. All the java command does is compile it? Could be wrong here. |
Forum: Java Jul 6th, 2008 |
| Replies: 2 Views: 3,050 Wouldn't it be better when your loading your application to display the splash screen, set a Timer running in the background, then close the splash screen and start the application? Not sure how that... |
Forum: Java Jul 6th, 2008 |
| Replies: 4 Views: 1,017 Hey guys,
Most embedded devices suc as the Amtel boards seen to require C / C++ programming, why don't they support Java? Is it question of performance? Or am I overlooking something? |
Forum: Java Jul 4th, 2008 |
| Replies: 2 Views: 388 What i dont understand is that your mixing Java code and JSP code, wouldnt it be neater if you just had html / jsp code in the jsp itself and then have a seperate JAVA class for the other code? |
Forum: Java Jul 4th, 2008 |
| Replies: 1 Views: 489 Ok whats your problem? You've stated that your learning Java and your new. Thats cool, pick up a book? Get a decent IDE - Personally I like netbeans.
JVM - Is a Java Virtual Machine, the code... |
Forum: Java Jul 1st, 2008 |
| Replies: 1 Views: 865 Can you use code tags please. Its the rules!
What does it do when it runs? Does it start to execute? I've noticed you've commented out some code at the top. |
Forum: Java Feb 23rd, 2008 |
| Replies: 3 Views: 645 whats this class's package? |
Forum: Java Feb 23rd, 2008 |
| Replies: 13 Views: 6,201 or f.write("\n"); I duno if what you wrote is correct, theres only one way test it! |
Forum: Java Feb 22nd, 2008 |
| Replies: 3 Views: 882 start by when posting code use the '[ code ] '[ /code ]' tags without the '' |
Forum: Java Feb 22nd, 2008 |
| Replies: 18 Views: 2,535 |
Forum: Java Feb 13th, 2008 |
| Replies: 5 Views: 8,933 Does this help?
http://forum.java.sun.com/thread.jspa?threadID=280745&messageID=1092147 |
Forum: Java Feb 12th, 2008 |
| Replies: 0 Views: 359 Hey guys i'm trying to split up my classes into packages but I seems to stumble upon this error quite alot:
OPPS please delete I figured it out sorry |
Forum: Java Feb 8th, 2008 |
| Replies: 2 Views: 464 Can an object that implements runnable throw an exception to its caller? I ask this cause the run method itself can't throw exceptions so i wonder how it could be achieved.
Basically the run... |
Forum: Java Feb 5th, 2008 |
| Replies: 3 Views: 572 Hey there cheers for the reply and the suggestions.
I've managed to knock up the following code whilst waiting for a reply..
package counter;
import java.io.BufferedReader;
import... |
Forum: Java Feb 5th, 2008 |
| Replies: 3 Views: 572 Hey guys,
I've got an input stream from the keyboard and wanting to know how much time passes between when the user enters something to when the user next enters something. That makes sence?
... |
Forum: Java Feb 2nd, 2008 |
| Replies: 2 Views: 1,752 if (int leftCount = countNodesOne(node.left = 1))
whats this? = is assignment operator not check for equality
should'nt this statement say:
node.left ==1 |
Forum: Java Feb 1st, 2008 |
| Replies: 4 Views: 649 Google is your friend, we don't do your homework for you! We are here to answer questions about bugs or design patterns |
Forum: Java Jan 28th, 2008 |
| Replies: 8 Views: 1,097 Well you still havent initialized the array members from what i can see. |
Forum: Java Jan 28th, 2008 |
| Replies: 8 Views: 1,097 Yeh thats called a default constructor. You don't really need the this keyword in front of the member names.
A word of advice class members should be private or protected and never unless theres... |
Forum: Java Jan 24th, 2008 |
| Replies: 5 Views: 790 is this a java question? I dont think it is, more of pc support? |
Forum: Java Jan 23rd, 2008 |
| Replies: 1 Views: 543 Hey there,
I've got a query when it comes to threads since im quite new.
class A
//default constructor....
//Contructs Class B which implements the Runnable interface.
Class B |
Forum: Java Jan 23rd, 2008 |
| Replies: 1 Views: 460 bit vague this question but if the devices have bluetooth turned on and broadcasting you could search for bluetooth signitures? |
Forum: Java Jan 22nd, 2008 |
| Replies: 2 Views: 662 take a look at RPC's or JNI |
Forum: Java Jan 22nd, 2008 |
| Replies: 4 Views: 886 *Not a good idea* but you could get VB to write to a text file, and java to probe the text file periodically for the data? |
Forum: Java Jan 21st, 2008 |
| Replies: 4 Views: 886 if you mean running at startup from the batch file you could invoke the java jar and supply it with a series of arguments?
Is this console application written in java? Is it a java console... |
Forum: Java Jan 18th, 2008 |
| Replies: 9 Views: 1,089 try google'ing I hear its the source of most knowledge |
Forum: Java Jan 17th, 2008 |
| Replies: 1 Views: 581 Hey guys, gonna try and explain this in an hopefully understandable way.
I've got my GUI which is called a GUI class which is a singleton so I can access it anywhere in my code and manipulate the... |
Forum: Java Jan 17th, 2008 |
| Replies: 8 Views: 1,616 Ok that example prob isn't the best example but either way it doesn't appear to work correctly and still needs the semapore not sure why though.
What if Thread 1 starts thread 2 by sending a... |
Forum: Java Jan 16th, 2008 |
| Replies: 8 Views: 1,616 Ok, Well i've got the following code written but it doesnt behave correctly. When the thread is executed and then forceably stopped, it doesnt stop the counter in the JFrame. However the method... |
Forum: Java Jan 16th, 2008 |
| Replies: 8 Views: 1,616 Hmmm, interesting I managed to get that to work but the next problem would be getting that to work with a ThreadPool where I don't know which thread as got the task to execute.
I've got 4 threads... |
Forum: Java Jan 16th, 2008 |
| Replies: 8 Views: 1,616 Hey guys,
I'm lost in terms of how to get 1 thread to stop another thread by changing one of its values.
Ie
say I've got a JButton which when pressed invokes thread 1.
I've also got... |
Forum: Java Jan 15th, 2008 |
| Replies: 8 Views: 1,334 Ezzaral after locating the latest build of jacob from sourceforge.com it seems to have magically sprung into life :) Thanks everyone for helping with this issue |
Forum: Java Jan 15th, 2008 |
| Replies: 8 Views: 1,334 Yeah its in the System32 folder. Also Norton isn't installed. In fact no firewall or antivirus is installed on that PC.
I'm using Jre : 1.6.0 and jdk 1.6.0 |