Solved

Strings with "" inside.

Posted on 1998-08-31
2
169 Views
Last Modified: 2010-03-30
I have to inizialize Strings with "" inside. The problem is that i don't know if there is another character for open and close inizialization for there strings. I've tried '' but doesn't works. How can i do? Thanks for helping me.
Gonne
0
Comment
Question by:gonne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
arbitrary earned 50 total points
ID: 1223011
use \"\"   like that->
String s= new String(" \"BlaBlaBla \" said Lord Frillk");
0
 
LVL 1

Expert Comment

by:arbitrary
ID: 1223012
\" is actually an escape character just like \r\n...............


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb example issues 3 55
String array comparison 4 46
Eclipse Help Java EE 5,6,7 Documentation, why not Java EE 8 8 45
hashmap order 17 42
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question