|
-
July 11th, 2012, 12:07 PM
#1
Printing literal quotes with strings and variables
Hi I'm trying to find out how to display my variable with quotes around it.
I've tried all types of things and get get it to work. with back slashes and such.
caseNum is my variable that I want quotes around.
I've tried these and none of them worked
System.out.println("Case"+" "+ caseNum);
System.out.println("Case"+" "+ "\"caseNum\"");
What am I doing wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|