0

Can't print those variable

class test public static void main(String args[]) { System.out.println("Bio Data"); String Name = ("Raj Sarkar"); int age = 22; String dob = ("29/07/2000"); System.out.println("The bio data of User" + Name, "is" + age + dob); } } In above code it always show error in last line of system.out.println it can print if I write till "+name" but cant print after that of i add //is" + age + dob); \\

16th Sep 2022, 8:20 AM
Raj Sarkar
Raj Sarkar - avatar
4 ответов
+ 3
class test { public static void main(String args[]) { System.out.println("Bio Data"); String Name = ("Raj Sarkar"); int age = 22; String dob = ("29/07/2000"); System.out.println("The bio data of User " + Name+" is " + age + dob); } }
16th Sep 2022, 8:27 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
Looks that , is the culprit lol thankyou again
16th Sep 2022, 8:29 AM
Raj Sarkar
Raj Sarkar - avatar
+ 1
also you missed { after class test
16th Sep 2022, 8:53 AM
Prashanth Kumar
Prashanth Kumar - avatar
0
Prashanth Kumar it worked can you please show me what's my error
16th Sep 2022, 8:28 AM
Raj Sarkar
Raj Sarkar - avatar