No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
If I have an application written in Java, how can I make it available for purchase/download on my website? Namely, how do I obscure the source code so it can't be viewed, yet enable it to be executed by any machine (including ones that don't have the JVM installed)? |
|
I'm trying to run through a file and add each string in the file to a string array. My code yields the error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at StudentLAM.main(StudentLAM.java:14)" Why doesn't this work? Note: I cannot use ArrayList. My error-yielding code: [CODE] private Scanner index; int cell = … |
|
What is the best way to assign values to variables of various data types from reading a file (while importing as few things as possible and making use of the simplest code)? I need to write a program which can assign values from a .dat file, if that's relevant. If … |
|
I'm required to construct a three-dimensional array (a "universe"), but unlike traditional array navigation where you go to the end of the column, row, etc., increment and start at the beginning, I am required to move in reverse (like actually navigating a cube). The precise instructions: - Move along a … |
|
In an assignment, I have to use four different files in a single program. I know doing so has something to do with inheritance (which we're studying now), but I don't understand how to write each file to use the others. How do I use multiple files in this single … |
|
I'm not quite sure if this is "the place" to ask this, but I figured I'd give it a shot. I attend a decent (but not extraordinary) engineering school (that of Virginia Commonwealth University), and I'm a little irresolute as to what subject matters I should pursue as an aspiring … |
|
I keep getting these errors in the program below. Here is the assignment: http://www.people.vcu.edu/~dprimeau/cmsc255/fall10/fifthprogram.html C:\Users\FerretFool0x77>javac Person.java Person.java:43: illegal start of expression public void recordpersonsinhousehold(int x){ //created 11/16/10, modified 11/19/10 ^ Person.java:43: illegal start of expression public void recordpersonsinhousehold(int x){ //created 11/16/10, modified 11/19/10 ^ Person.java:43: ';' expected public void recordpersonsinhousehold(int … |