Search Results

Showing results 1 to 40 of 136
Search took 0.03 seconds.
Search: Posts Made By: stultuske ; Forum: Java and child forums
Forum: Java Mar 24th, 2009
Replies: 4
Views: 306
Posted By stultuske
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: 352
Posted By stultuske
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: 910
Posted By stultuske
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: 910
Posted By stultuske
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,022
Posted By stultuske
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: 830
Posted By stultuske
make sure your classpath/project libraries contain all the info/jars your application needs.
Forum: Java Feb 21st, 2009
Replies: 4
Views: 830
Posted By stultuske
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: 2,012
Posted By stultuske
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,640
Posted By stultuske
and, preferably, what you tried so far
Forum: Java Feb 10th, 2009
Replies: 11
Solved: For loop
Views: 665
Posted By stultuske
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: 717
Posted By stultuske
you can also post the new errors here.
Forum: Java Feb 3rd, 2009
Replies: 1
Views: 1,267
Posted By stultuske
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,206
Posted By stultuske
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,817
Posted By stultuske
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,121
Posted By stultuske
== 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,121
Posted By stultuske
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,121
Posted By stultuske
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,121
Posted By stultuske
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,703
Posted By stultuske
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: 720
Posted By stultuske
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
Posted By stultuske
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,181
Posted By stultuske
Windwos on a Mac? Blasphemy ;) :D
Forum: Java Dec 9th, 2008
Replies: 5
Views: 3,181
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Solved: Split a line?
Views: 450
Posted By stultuske
read it as a String and use the toCharArray() method
Forum: Java Dec 8th, 2008
Replies: 11
Views: 1,201
Posted By stultuske
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,201
Posted By stultuske
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,201
Posted By stultuske
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
Solved: Image Path
Views: 1,256
Posted By stultuske
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
Solved: Array String
Views: 784
Posted By stultuske
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,115
Posted By stultuske
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,115
Posted By stultuske
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,115
Posted By stultuske
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,027
Posted By stultuske
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,689
Posted By stultuske
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
Solved: star array
Views: 1,320
Posted By stultuske
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: 485
Posted By stultuske
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: 485
Posted By stultuske
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,208
Posted By stultuske
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...
Showing results 1 to 40 of 136

 


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

©2003 - 2009 DaniWeb® LLC