Search Results

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: gusano79 ; Forum: Java and child forums
Forum: Java 6 Days Ago
Replies: 2
Views: 218
Posted By gusano79
In general, I think it could. In practice, I haven't heard about anyone using it recently.

Also, by "industrial," do you mean any software development company, or did you have a specific type of...
Forum: Java 7 Days Ago
Replies: 5
Views: 204
Posted By gusano79
More likely it's due to floating point representation (http://en.wikipedia.org/wiki/Floating_point#Representable_numbers.2C_conversion_and_rounding), in particular: The decimal value 0.1 has an...
Forum: Java 7 Days Ago
Replies: 5
Views: 204
Posted By gusano79
Read about floating point accuracy (http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems).



You might try sticking with integers and using fixed-point math...
Forum: Java Nov 9th, 2009
Replies: 2
Views: 556
Posted By gusano79
See this article (http://rosettacode.org/wiki/Huffman_codes) for a quick explanation and some examples.

From the article:
Forum: Java Nov 9th, 2009
Replies: 1
Views: 177
Posted By gusano79
One way you might approach this problem is to start with a list of fax machines and go through it, removing machines that don't support the request. After that, the only machines left in the list...
Forum: Java Aug 20th, 2004
Replies: 3
Views: 4,985
Posted By gusano79
It's not okay to have that exception. My "Please Advise" is that you post code so we can at least see what you're trying to do.

Unless you're loading large amounts of data into memory (i.e. more...
Forum: Java Jul 12th, 2004
Replies: 8
Views: 4,748
Posted By gusano79
Another way to approach your switch statement is to convert the string to a number first, then use the number in the switch. The Integer class...
Forum: Java Jul 12th, 2004
Replies: 8
Views: 4,748
Posted By gusano79
With some languages, it may depend on the compiler as well. Shortcutting an operation like that can be considered an optimization; I've heard of compilers (can't think of any off the top of my head...
Forum: Java Jul 12th, 2004
Replies: 8
Views: 4,748
Posted By gusano79
An expression in a switch statement can be any of these: int, short, byte, or char. red_evolve is basically correct, though, since they're all integer types under the hood.

--sg
Forum: Java Jun 24th, 2004
Replies: 1
Views: 2,998
Posted By gusano79
Are you interested in writing the conversion yourself, or do you just need the conversion to happen? These can help:Double.valueOf(String)...
Forum: Java Jun 17th, 2004
Replies: 4
Views: 14,153
Posted By gusano79
java.awt.GraphicsEnvironment (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/GraphicsEnvironment.html) has what you need:
...
Forum: Java Jun 15th, 2004
Replies: 5
Views: 12,296
Posted By gusano79
Simplest way to check actual barcodes without a reader is to find a barcode generation service--like the one Killer_Typo suggested--for the barcode symbology you're implementing (e.g. UPC, EAN). ...
Forum: Java Jun 15th, 2004
Replies: 3
Views: 15,159
Posted By gusano79
Ah, but then you miss all of the stream stuff, which is quite handy for any sort of input/output situation (and it makes you tough, too). Never mind that (warning: opinion ahead) throwing up a...
Forum: Java May 18th, 2004
Replies: 1
Views: 3,496
Posted By gusano79
One reason why your memory buttons don't work: The array you're using to store the values is declared in the actionPerformed method. This means that as soon as the method returns, the array goes...
Forum: Java May 18th, 2004
Replies: 1
Views: 6,087
Posted By gusano79
Yes it is, especially if you're epileptic.

Quick explanation: When you call repaint, that ends up placing a call to update, which does a fillrect to clear the drawing area and then calls paint. ...
Forum: Java May 13th, 2004
Replies: 4
Views: 3,173
Posted By gusano79
Try this:

Remove the declaration and definition of th_ciz (first two lines quoted above). Roll it all into the ActionListener:


bt_ciz.addActionListener(new ActionListener(){
public void...
Forum: Java May 13th, 2004
Replies: 1
Views: 4,216
Posted By gusano79
All of that "isInQuad" setup is more complicated than it has to be, and it will be a nightmare to maintain if you want to change anything.

If it's a circle you want, a little coordinate geometry...
Showing results 1 to 17 of 17

 


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

©2003 - 2009 DaniWeb® LLC