|
Author |
Topic: Quotes in a String bug (Read 788 times) |
|
skloopy
|
Quotes in a String bug
« on: Mar 27th, 2003, 7:03am » |
|
I'm getting this error when i try to use quotes in a string. It woks fine when i use '\"' to make a " char, but "\"" doesn't work. Is there a workaround for this? Code: String hi = "hello"; String quote = "\""; // Errors here "unexpected token: c" println(quote + hi + quote); |
|
|
|
|
|
fry
|
Re: Quotes in a String bug
« Reply #1 on: Mar 27th, 2003, 3:16pm » |
|
weird.. could you send the code from the lib/build folder that gets generated for this? it will be called TemporaryNNNN_NNNN.java where Ns are a bunch of digits.
|
|
|
|
skloopy
|
Re: Quotes in a String bug
« Reply #2 on: Mar 28th, 2003, 2:58am » |
|
Yeah. This is what the file says Code:import java.applet.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.text.*; import java.util.*; import java.util.zip.*; import javax.comm.*; public class Temporary_7454_2127 extends KjcApplet {void setup() { size(100, 100); } void draw() {String hi = "hello"; String quote = "\""c HJAFLDF(IMGL= + @A + IMGL=)c } } |
| I'm on OS9 BTW.
|
« Last Edit: Mar 28th, 2003, 2:59am by skloopy » |
|
|
|
|
fry
|
Re: Quotes in a String bug
« Reply #3 on: Sep 18th, 2003, 4:26am » |
|
fixed in rev 60, with the new preprocessor.
|
|
|
|
|