- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
When you put a PictureBox into your form, you have the option of loading a Picture at compile-time. That picture will still be there when you make your project a .exe and put it on another c0mputer Is there any way I can incorporate a Picture into my executable without …
You want to compare characters, not strings [code] char c = ln.toUpperCase().charAt(0) // gets the first letter in the String if (c >= 'A' && c <= 'K') group = 1; [/code] although you can compare characters to integers, its better to compare characters to other characters because it makes …
javaAddicts suggestion is great, but it won't work. you need to put parenthesis around the "(abc) argument1" so that the Object is casted and not the void. Also, if you don't want an error thrown when argument1 is not an abc, use the instanceof keyword, as shown [code] public static …
The bitwise functions only operate on integers. When you wrote data[0] | data[1] << 8 it didn't work as you thought when data contained `{-128, 0}` -128 as a byte is 10000000 -128 as an int is 11111111111111111111111110000000 (25 1s, 7 0s) the int is what is being used in …
is it possible for me to call a static method if all I know is the class?
In your Bag class, you use the synchronized keyword on every single method, but the get methods don't need it. Also, a set method doesn't need synchronized ONLY IF you are setting one of the variables that don't get changed in the updateDelta(), put(), or get() methods. So setMin(int _min) …
The End.
Zork'nPalls