Help
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Somya Gupta
25 August 2018, 15:06
public class Solution {
public static void main(String[] args) {
//write your code here
System.out.println("This is a Windows path:" (" C:\"Program Files\"Java\"jdk1.8.0_172\"bin"));
}
}
0
David Sunil
16 August 2018, 07:08
how to display this on screen
This is a Windows path: "C:\Program Files\Java\jdk1.8.0_172\bin"
This is a Java string: \"C:\\Program Files\\Java\\jdk1.8.0_172\\bin\"
0
Roman
16 August 2018, 13:30
Read about escaping and use the hint:
\” – Insert a double quote character in the text at this point.
\\ – Insert a backslash character in the text at this point.
0
Roman
15 August 2018, 08:31
Please, specify your question.
0