Actually AB11CDE hex is 179,379,422 decimal, which is awfully long for a license plate number (so its good they used hex).
Oscar0
Posts
-
We call ourselves geeks? We should be ashamed! -
error: could not find or load main classSince your main declaration looks correct, it most likely the compile was not successful. Look in the directory where you are compiling. See if the file GraphExplore.class was created. You will get that message if it is not being created as a result of an error. As a further experiment, try misspelling the name when you run it, you will see that it is the exact same error.
-
Sutton's Zeroth LawSomehow I was thinking that Number of Programmers and Code Quality would be inversely proportional.
-
So, how do you guys network within the IT industry?I agree with the user group suggestion. If you go on meetup.com and look for local meetups of interest. You might be surprised at what is available.
-
trying to find the real import filesThe direct answer to your question is yes, there is a direct correspondence between the dotted package names and the directory hierarchy. So for example, "java.nio.Buffer" is found in the directory "java/nio" and the file the loader looks for (in that directory) is called: "Buffer.class". What directory? you ask. The answer is any and all directories in the classpath are candidates (that includes jar files). A jar file is nothing more than a zip file with a different file extension. So open "rt.jar" in Winzip (or whatever zip file viewer you have lying around. In there you will see all the standard Java library directories, like "javax/swing/tree", "java/awt/font" etc. (these would correspond to packages javax.swing.tree.*, java.awt.font.*). And in the directory "java/nio" you should find all the java.nio files. EDIT: by the way, rt.jar is found in the jre/lib directory. So in Windows that would be "/Program Files/Java/jre/lib" or "/Program Files/Java/jdk/jre/lib"
-
Understanding Java IntegerInteger is not different than any other Java Object (with the previously noted exception that the jvm provides some help to avoid duplication in the smaller values). Perhaps one thing that makes it seem confusing is the auto-conversion between 'int' and Integer. I could see that appearing to be confusing at first. The main thing to remember is that if you want to do numeric comparisons like ==, <, > etc. just make sure you are doing them on 'ints' not Integers.
-
Please tell me not all programming jobs are like this.It sounds like most of the respondees are reading into your description, that the politics and the personalities are the issue. But reading your actual description you really are just saying that the task just doesn't seem to you like it's worth doing. So you are saying that you don't see the value of converting from one XML schema to another one. On the other hand you did just start there and have little background on the importance or usefulness of it. In addition, sometimes when you start out, as an intern, guess what: you get to do the boring stuff that others don't feel like doing. If you really are thinking about quitting the profession just because you are given a task that you feel is beneath you as an intern. Then by all means do so, because it seems you picked the wrong profession (but I doubt you will find the situation is much different in other fields). On the other hand if it is, as others were reading into your comments, that the actual problem is a caustic and unworkable environment and personalities, then it might make sense to move on. Although learning how to make things work in spite of the personalities involved is still something you would have to figure out at some point.
-
Runaway mindCould you repeat the question?
-
Special CaseBug Alert. I think you meant perhaps: return (i == 0) ? 1 : ++i;
-
Nesting level: 9001Then I would amend it to:
size = 29;
if(width > 11 || height > 4) size++;
if(width > 13 || height > 5) size++;
if(width > 15 || height > 6) size++;
if(width > 18 || height > 7) size++;
if(width > 19 || height > 8) size++;
if(width > 21 || height > 10) size++;switch(size) {
case 29: Spread(width, 15, 16, xpos, ypos); break;
case 30: Spread(width, 13, 14, xpos, ypos); break;
case 31: Spread(width, 11, 12, xpos, ypos); break;
case 32: Spread(width, 9, 10, xpos, ypos); break;
case 33: Spread(width, 9, 9, xpos, ypos); break;
case 34: Spread(width, 8, 7, xpos, ypos); break;
case 35:
SpreadCompressed(width, width > 21, height > 10, xpos, ypos);
size--; //back to 34 for you
break; -
Nesting level: 9001How about something along the lines of:
size = 29;
if(width > 11 || height > 4) size++;
if(width > 13 || height > 5) size++;
if(width > 15 || height > 6) size++;
if(width > 18 || height > 7) size++;
if(width > 19 || height > 8) size++;
if(width > 21 || height > 10) size++;switch(size) {
case 29: Spread(width, 15, 16, xpos, ypos); break;
case 30: Spread(width, 13, 14, xpos, ypos); break;
case 31: Spread(width, 11, 12, xpos, ypos); break;
case 32: Spread(width, 9, 10, xpos, ypos); break;
case 33: Spread(width, 9, 9, xpos, ypos); break;
case 34: Spread(width, 8, 7, xpos, ypos); break;
case 35: SpreadCompressed(width, width > 21, height > 10, xpos, ypos); break;
} -
java.lang.ClassNotFoundExceptionMaybe try changing your jar filename to no spaces.