Forum: Java May 4th, 2007 |
| Replies: 3 Views: 1,363 I prefer to use Sun's, since they're the ones who created the language. I don't know how others compare, though. |
Forum: Java Mar 31st, 2007 |
| Replies: 2 Views: 712 Not quite. The default access modifier makes things public only to the same package. Any class in another package will not be able to access the methods/members. |
Forum: Java Feb 6th, 2007 |
| Replies: 2 Views: 983 ^ is a bitwise XOR operator. It can only be used on primitive integer types.
?: is the ternary operator, so named because it takes three parts (see example below). It's shorthand for an if-else... |
Forum: Java Jan 31st, 2007 |
| Replies: 5 Views: 2,196 int row = 0;
int col = 0;
for (row =0; row<theArray.length; row++)
{
for(col = 0; col<theArray[row].length; col++)
{
// no work being done here...
// you should compare... |
Forum: Java Jan 23rd, 2007 |
| Replies: 3 Views: 4,222 You're really close again. You've got the assignment backwards for the first value (it should be a = theArray[0];). There is one other problem with your code though: it doesn't scale. What you... |