0
How could I print string as line of ints?
5 Answers
+ 6
Hello, 😊
Can you specifying your question correctly!
Use the search bar!
https://www.sololearn.com/post/10362/?ref=app
Please, read our guidelines:
https://www.sololearn.com/discuss/1316935/?ref=app
An useful code for any new user here!;)
https://code.sololearn.com/WvG0MJq2dQ6y/
+ 6
Я Неизвестно so your converting int x to string and then using concatenation to add y. Your output will be a string there are no intergers.
to visualize whats happening look at this.
String x = "22"+34;
System.out.print(x);
+ 3
Are you looking to convert a string of numbers into integers? Your question isn't very clear and is difficult to answer.
im assuming its not somthing as simple as
String str = "12345";
System.out.print(str);
+ 1
print (line)here your string
0
Yes, D_Stark, u r clearly! Google tells i should put there this construction :
String str = Integer.toString(x) +(y);
System.out.println(str)
It works, but now i misunderstanding, why idea want me to use java.lang.String instead of String...