0
how to print the name stored in string?
4 ответов
+ 3
its same as printing value from a integer datatype!! using +operator
+ 2
if your
string name = "";
system.out.println(" Hello" +name);
+ 2
class Sample {
public static void main(String[ ] args) {
String name ="Dev";
System.out.println(name);
}
}
+ 1
if your string is 'god',
god="Zlatan Ibrahimovic";
use
System.out.println(god);
will print zlatan ibrahimovic