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); \\
4 Antworten
+ 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);
}
}
+ 1
Looks that , is the culprit lol thankyou again
+ 1
also you missed { after class test
0
Prashanth Kumar it worked can you please show me what's my error