Forum: Java Mar 24th, 2009 |
| Replies: 4 Views: 304 would depend...
several colleges and firms have a clause in their contracts that states that, if you write it using their hardware (a pc in a lab at college, a laptop from work, ...) the code (and... |
Forum: Java Mar 23rd, 2009 |
| Replies: 7 Views: 348 just a few remarks:
you're calling the calcarea - method with a parameter, but you have no parameter calcarea that takes parameters
it should take the parameter 'double radius'
like this:
... |
Forum: Java Mar 13th, 2009 |
| Replies: 9 Views: 894 you can instantiate the class, but that won't help your.
if you would do this:
import Messages;
public class TestClass{
public static void main(String args[]){
Messages message = new... |
Forum: Java Mar 11th, 2009 |
| Replies: 9 Views: 894 public void showInputPrompt(String showFrame, String messageToUser, String dialogTitle, int infoStyle
{
JOptionPane.showInputPrompt(showFrame, messageToUser, dialogTitle, infoStyle);
}
what... |
Forum: Java Feb 27th, 2009 |
| Replies: 5 Views: 1,004 that depends
...
is it supposed to work only for your player, does it have to be compatibel with (for instance) winamp, ... ?
if it just has to be for your own player, you can always create a... |
Forum: Java Feb 26th, 2009 |
| Replies: 4 Views: 823 make sure your classpath/project libraries contain all the info/jars your application needs. |
Forum: Java Feb 21st, 2009 |
| Replies: 4 Views: 823 what kind of media files are you trying to play and do you have everything needed to play 'm installed?
can you be a bit more specific about what goes wrong, what errors you get, post the relevant... |
Forum: Java Feb 15th, 2009 |
| Replies: 6 Views: 1,981 just because you play an audio file doesn't mean you have to open a visible player.
now, if you want to play a .wav or .au file, or something similar, you don't need to install JMF or anything... |
Forum: Java Feb 13th, 2009 |
| Replies: 7 Views: 2,603 and, preferably, what you tried so far |
Forum: Java Feb 10th, 2009 |
| Replies: 11 Views: 661 he's asking for an infinite loop. little does he know, he already wrote one in his previous post:
for( int i = 3; i < 41; i)
{
System.out.println(" Numbers are " + i);
}
this is an... |
Forum: Java Feb 4th, 2009 |
| Replies: 7 Views: 703 you can also post the new errors here. |
Forum: Java Feb 3rd, 2009 |
| Replies: 1 Views: 1,242 don't make it harder than needs be
public boolean sameCoins(Purse other)
{
Collections.sort(coins);
for(int i = 0; i < coins.size(); i++)
{
.... |
Forum: Java Jan 20th, 2009 |
| Replies: 14 Views: 1,201 since I don't know your code, this is just the concept, not the right code
add all your 'products' into an array of the type product and add the sum
Product[] list = getChosenProducts();
int... |
Forum: Java Jan 14th, 2009 |
| Replies: 18 Views: 1,800 I've tried to copying the code you provided in Eclipse, to check for the linenumbers, but either you did not give us your most recent code, or you did not post all the exceptions you're getting.
... |
Forum: Java Jan 8th, 2009 |
| Replies: 20 Views: 1,117 == area [0][]
here's your error.
that wasn't present the last time you posted the code |
Forum: Java Jan 8th, 2009 |
| Replies: 20 Views: 1,117 no change here either, it still runs perfectly ... don't really see where I can help at that :/ |
Forum: Java Jan 8th, 2009 |
| Replies: 20 Views: 1,117 I just ran your code and it works just fine
you forgot to compile it or something? |
Forum: Java Jan 8th, 2009 |
| Replies: 20 Views: 1,117 what kind of errors? and what type of data did you store in that array? String, int, char, ...? |
Forum: Java Dec 26th, 2008 |
| Replies: 37 Views: 1,696 ignore this post if you intend to actually learn something. start off with Notepad. it's not the most "flashy" tool, but it's as good as any idea (for a beginner that is, and it's even better)
... |
Forum: Java Dec 23rd, 2008 |
| Replies: 3 Views: 719 you must make sure to close your writer object and create a new reader object, after you save your new file |
Forum: Java Dec 13th, 2008 |
| Replies: 3 Views: 704 just read those errors. they provide you with more information than you need to solve them |
Forum: Java Dec 9th, 2008 |
| Replies: 5 Views: 3,144 Windwos on a Mac? Blasphemy ;) :D |
Forum: Java Dec 9th, 2008 |
| Replies: 5 Views: 3,144 well...
since there are certain OS' that do not "remember" the creation date of a file, I doubht Java has a standard sollution for this.
At least not one I've come accross to |
Forum: Java Dec 9th, 2008 |
| Replies: 4 Views: 400 you did notice though that that 'useless response' contained the entire answer to your question? :-|
for the other parts: you might want to read the forum rules, you know, those rules you agreed... |
Forum: Java Dec 9th, 2008 |
| Replies: 4 Views: 400 This (http://java.sun.com/javase/6/docs/api/) might prove to be a good place to start your search. Another good idea would be to stop copy-pasting your assignments or your vision of them on this... |
Forum: Java Dec 8th, 2008 |
| Replies: 4 Views: 449 read it as a String and use the toCharArray() method |
Forum: Java Dec 8th, 2008 |
| Replies: 11 Views: 1,194 ehm... no, no it wouldn't, unless off course, you'd just copy paste my code without reading the rest of the post.
no, I didn't, but you just answered it yourself: |
Forum: Java Dec 8th, 2008 |
| Replies: 11 Views: 1,194 I never claimed to have delivered the most perfect code. I just based myself on his code and explained where he went wrong.
It's not my job to re-write his code to the most efficiƫnt form, it's his... |
Forum: Java Dec 8th, 2008 |
| Replies: 11 Views: 1,194 if(num=='8')
pluralName="Eighty";
if(num=='9')
pluralName="Ninety";
else
pluralName="Error /w Plural Method";
this will always return "Error /w Plural Method", unless the value... |
Forum: Java Dec 4th, 2008 |
| Replies: 4 Views: 1,244 by making sure the image is always in the same folder with your application and using relative paths |
Forum: Java Dec 4th, 2008 |
| Replies: 6 Views: 784 there is off course the coding-the-damn-thing and the trying-the-crap-out approach, which, in combination with reading the api's, does a lot more than just reading it :) |
Forum: Java Dec 1st, 2008 |
| Replies: 11 Views: 1,110 for (int i=0; i<cardCt;i++);
drawCard(g, hand.getCard(i); 30 + i * 70, 10);
replace the above with:
for (int i=0; i<cardCt;i++)
drawCard(g, hand.getCard(i), 30 + i * 70, 10);
and... |
Forum: Java Dec 1st, 2008 |
| Replies: 11 Views: 1,110 public static void main (String args[]){
System.out.println("this is a main method");
// here you call your classes and methods.
} |
Forum: Java Dec 1st, 2008 |
| Replies: 11 Views: 1,110 well ... I don't see a line in green, so ... which line are we talking about? also, use Code-tags, it makes your code much easier to read
propably because even though you don't intend to close... |
Forum: Java Dec 1st, 2008 |
| Replies: 12 Views: 1,025 what part of "the answer has already been given" didn't you understand? if you think we're not more experienced in Java than you are, I hope you do realise we seem to be just a tad farther in our... |
Forum: Java Dec 1st, 2008 |
| Replies: 24 Views: 1,680 it only shows the last word because you overwrite it every time, which has been pointed out several times before. don't overwrite it, add it to the String that's already in the JLabel.
just look up... |
Forum: Java Nov 28th, 2008 |
| Replies: 15 Views: 1,315 it is doing exactly what you program it to do.
test the above code, and check the differences in this code and yours, and the difference in the output.
normally I would not just give you the... |
Forum: Java Nov 27th, 2008 |
| Replies: 4 Views: 484 I haven't used any
looks a lot like your nickname, did you com e here to advertise for your software?
quality's never cheap
I have no idea what you just said here :S |
Forum: Java Nov 27th, 2008 |
| Replies: 4 Views: 484 do you know our good friend google (http://www.google.com)?
do note that not all "free expert tests" are as good as they claim to be, so if you're looking for a serious test, don't stare yourself... |
Forum: Java Nov 27th, 2008 |
| Replies: 10 Views: 4,182 Java is an Object Oriented language: "static" basically means: for this method you do not have to create an instance of a class. there's nothing wrong with using static methods, but you're not... |