+ 3

How i can do this in java?

String x="man"; i want (ma"n) <-this output but when I add another comma in it I got error,please help me I am begginer in Java .

10th Jun 2018, 5:37 PM
Maninder $ingh
Maninder $ingh - avatar
8 Réponses
+ 2
https://code.sololearn.com/chCFALRMAWWU/?ref=app I think this code will help you!
12th Jun 2018, 9:52 AM
Amir01
Amir01 - avatar
+ 5
Hi Maninder Singh if this is a Java question would you mind removing the python tag? Please provide us with your entire code by adding it here to make it easier to help Thanks🙂
10th Jun 2018, 5:53 PM
bobbie
bobbie - avatar
+ 3
\"
10th Jun 2018, 5:59 PM
BlazingMagpie
BlazingMagpie - avatar
+ 2
TRevor Hodges I want to use this "
10th Jun 2018, 5:53 PM
Maninder $ingh
Maninder $ingh - avatar
+ 2
Just use \ to put special characters in string String x="ma\"n"
11th Jun 2018, 12:04 PM
alex
+ 1
if you want to use ma"n then you must put single comma ' two times like this ma''n hope it works
10th Jun 2018, 7:05 PM
imtiaz Ahmad
imtiaz Ahmad - avatar