0

How could I print string as line of ints?

28th Nov 2018, 9:56 AM
Феоктистова Валерия Александровна
Феоктистова Валерия Александровна - avatar
5 odpowiedzi
+ 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/
28th Nov 2018, 10:35 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 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);
28th Nov 2018, 11:12 AM
D_Stark
D_Stark - avatar
+ 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);
28th Nov 2018, 10:24 AM
D_Stark
D_Stark - avatar
+ 1
print (line)here your string
28th Nov 2018, 10:23 AM
Briler
Briler - avatar
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...
28th Nov 2018, 10:40 AM
Феоктистова Валерия Александровна
Феоктистова Валерия Александровна - avatar