Please tell me if i made a mistake or something cause the system keeps on telling me that i made a mistake. Code in the descript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please tell me if i made a mistake or something cause the system keeps on telling me that i made a mistake. Code in the descript

public class Program { public static void main(String[] args) { char x= manas; char y= laud; System.out.println (x+y); } }

19th Dec 2017, 2:36 PM
Manas Laud
Manas Laud - avatar
1 Answer
+ 3
If it is java, char can hold one character. Why not make it strings.
19th Dec 2017, 2:49 PM
Paul
Paul - avatar