Results 1 to 3 of 3
Thread: Cant compile this simple line!
- 07-28-2011, 06:26 PM #1
Cant compile this simple line!
This line wont compile for some reason:
Java Code:String tempString = theFile[z].toString ().replace (tempChar, key[v][[100 * (int) Math.random()]);
Java Code:C:\Program\Java\jdk1.6.0_23\jre\classes\pjjava\crypt\cryptMethods.java:170: illegal start of expression String tempString = theFile[z].toString ().replace (tempChar, key[v][[100 * (int) Math.random()]); ^ C:\Program\Java\jdk1.6.0_23\jre\classes\pjjava\crypt\cryptMethods.java:170: ')' expected String tempString = theFile[z].toString ().replace (tempChar, key[v][[100 * (int) Math.random()]); ^ C:\Program\Java\jdk1.6.0_23\jre\classes\pjjava\crypt\cryptMethods.java:170: ';' expected String tempString = theFile[z].toString ().replace (tempChar, key[v][[100 * (int) Math.random()]); ^ 3 errors Tool completed with exit code 1
PHP Code:for (int z = 0; z < theFile.length; z++) { for (int v = 0; v < theChars.length; v++) //Här har vi inte theChars.length + 2 eftersom dom används senare { String tempChar = theChars[v] + ""; String tempString = theFile[z].toString ().replace (tempChar, key[v][[100 * (int) Math.random()]); theFile[z] = new StringBuilder (tempString); } }
- 07-28-2011, 06:32 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,460
- Rep Power
- 16
Why have you got two '[' next to each other?
- 07-28-2011, 06:35 PM #3
Similar Threads
-
30 line simple gui, simple error, need help
By cc11rocks in forum New To JavaReplies: 6Last Post: 02-05-2011, 08:33 PM -
First Java Program-Compile Errors (errors are posted)-simple GUI
By cc11rocks in forum AWT / SwingReplies: 4Last Post: 01-04-2011, 12:36 AM -
"Could not find the main class" for Linux Command Line Compile
By tetelee in forum New To JavaReplies: 3Last Post: 08-25-2010, 10:21 AM -
[SOLVED] Compile from the command line
By GilaMonster in forum New To JavaReplies: 8Last Post: 06-13-2008, 07:12 AM -
simple problem - code wont compile
By dirtycash in forum New To JavaReplies: 1Last Post: 11-20-2007, 05:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks