Search Results

Showing results 1 to 22 of 22
Search took 0.05 seconds.
Search: Posts Made By: PoovenM ; Forum: Java and child forums
Forum: Java Dec 17th, 2008
Replies: 13
Views: 1,514
Posted By PoovenM
Oh! So that's what that was :D hehe it shouldn't be in an if statement though.
Forum: Java Dec 17th, 2008
Replies: 13
Views: 1,514
Posted By PoovenM
uh hum I just gave you the answer! If you run the loop I gave you and set n to 100 you'll see that comp will have a final value of 4950.

But the idea is rather simple, you can count individual...
Forum: Java Dec 17th, 2008
Replies: 13
Views: 1,514
Posted By PoovenM
I wouldn't say your code is wrong... like I said, the selection sort can be done in many ways. Here's the algo from Wikipedia (http://en.wikipedia.org/wiki/Selection_sort):

for i ← 0 to n-2 do
...
Forum: Java Dec 17th, 2008
Replies: 13
Views: 1,514
Posted By PoovenM
Oh!! My bad, I completely read the question incorrectly... actually I was so off I wonder how I managed to confuse myself that much lol

You aren't keep track of the number of comparisons you're...
Forum: Java Dec 17th, 2008
Replies: 13
Views: 1,514
Posted By PoovenM
So my first question would be: what are you comparing? I only see that you've implemented the Selection Sort... are you wanting to compare different methods of carrying out the selection sort?
...
Forum: Java Dec 17th, 2008
Replies: 4
Solved: Image Path
Views: 1,246
Posted By PoovenM
Not a problem :) If you found your solution, please mark this thread as solved.
Forum: Java Dec 4th, 2008
Replies: 4
Solved: Image Path
Views: 1,246
Posted By PoovenM
Read this thread: http://www.daniweb.com/forums/thread42410.html

You'll find that there are multiple ways to do what you need. I suggested getResource().
Forum: Java Dec 2nd, 2008
Replies: 3
Views: 631
Posted By PoovenM
While there isn't a stringent specification for these files, I doubt Microsoft Excel will allow such character encodings. So I tested it out... I copied one of the characters you gave as an example...
Forum: Java Jun 6th, 2008
Replies: 3
Views: 1,237
Posted By PoovenM
I think I might have made the same mistake. The way Scanner works, is by matching patterns in some stream. When you use nextInt() it will attempt to find an integer value in the input stream. If it...
Forum: Java Jun 6th, 2008
Replies: 13
Views: 8,367
Posted By PoovenM
Alex said:

Well that's not exactly true; the gradient (i.e. rate of change) of a Sin curve depends on the input. Though I did misread the part about the circle, my bad :icon_redface:

Good work...
Forum: Java Jun 4th, 2008
Replies: 5
Views: 895
Posted By PoovenM
I've not checked if Alex is correct, but as per your question regarding the storage of your array information. It can so easily be done by writing the entire array object to a file.

The is a...
Forum: Java Jun 4th, 2008
Replies: 13
Views: 8,367
Posted By PoovenM
Hi guys, drawLine() doesn't require the points to vary. In fact drawLine(10,10,10,10) would simply result in a point being drawn.

It's Math.PI because all constants, as per the Java convention,...
Forum: Java Jan 31st, 2008
Replies: 6
Views: 3,218
Posted By PoovenM
That is rather interesting... ah such is life that a new day brings new knowledge. P.S. don't forget to mark your post as solved :icon_wink:
Forum: Java Jan 30th, 2008
Replies: 6
Views: 3,218
Posted By PoovenM
hehe Indeed he does have his indices mixed up! But I would like to check up on the instantiation of the array outside the constructor. I think that the new value of no_of_attributes would be updated...
Forum: Java Jan 30th, 2008
Replies: 6
Views: 3,218
Posted By PoovenM
I just noticed, you shouldn't have if(br.readLine().equals("Y") || br.readLine().equals("y")) as you're requesting data from the input stream twice if the user actually presses a y the first time....
Forum: Java Jan 30th, 2008
Replies: 6
Views: 3,218
Posted By PoovenM
Oh gosh, that's a large post! First, I don't think you require throws IOException in the constructor of ENTITY. Second, please use the Java convention ...
Forum: Java Jan 22nd, 2008
Replies: 5
Views: 1,308
Posted By PoovenM
One would have to restart Tomcat whenever a Java file (usually a servlet) is recompiled. This is because Tomcat uses a cache. Changes to JSP files do not require a restart. I recommend that you use...
Forum: Java Jan 22nd, 2008
Replies: 4
Views: 1,546
Posted By PoovenM
Well you'd have to search through the Vector; once you've found the code, you'd have access to the Object you need to remove and thus v.remove(empData); will work. The easiest way to iterate over the...
Forum: Java Jan 22nd, 2008
Replies: 5
Views: 1,308
Posted By PoovenM
Well the first step is to identify that indeed Apache Tomcat is up and running. If you go to localhost:8080 it should display a Tomcat page. If that doesn't work then the Tomcat service is not...
Forum: Java Dec 13th, 2007
Replies: 5
Views: 2,991
Posted By PoovenM
hehe yeah I knew what you were trying to do Darkagn, that's why I told him to explain what he knows even though I sorta explained why static methods aren't allowed in interfaces. Sorry I didn't mean...
Forum: Java Dec 13th, 2007
Replies: 5
Views: 2,991
Posted By PoovenM
:icon_idea: An interface prescribes a set of behaviour (i.e. method) listings that you’d like an Object to have. Since static methods don’t work on an Object there isn’t really a need to declare a...
Forum: Java Jul 30th, 2007
Replies: 24
Views: 3,812
Posted By PoovenM
Hey, was just wondering... when you decrement currCD, how do you ensure that it isn't a negative number? Perhaps it is handled internally... but if it isn’t then wouldn’t that be an issue? Yeah was...
Showing results 1 to 22 of 22

 


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

©2003 - 2009 DaniWeb® LLC