0

how to print the name stored in string?

1st Sep 2016, 7:52 AM
Blessy B
Blessy B - avatar
4 Réponses
+ 3
its same as printing value from a integer datatype!! using +operator
2nd Sep 2016, 2:41 AM
Shubham Priyesh
Shubham Priyesh - avatar
+ 2
if your string name = ""; system.out.println(" Hello" +name);
1st Sep 2016, 1:08 PM
Pokemon 2000
Pokemon 2000 - avatar
+ 2
class Sample { public static void main(String[ ] args) { String name ="Dev"; System.out.println(name); } }
3rd Sep 2016, 4:20 PM
Gayathridevi.S
+ 1
if your string is 'god', god="Zlatan Ibrahimovic"; use System.out.println(god); will print zlatan ibrahimovic
1st Sep 2016, 9:50 AM
Raj Joshi
Raj Joshi - avatar