+ 2

How do i store user input in a Stringbuilder?

13th Sep 2018, 8:55 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
6 ответов
+ 1
import java.util.Scanner; import java.lang.StringBuilder; Scanner sc =new Scanner(System.in); StringBuilder sb =new StringBuilder(sc. nextLine());
13th Sep 2018, 9:00 PM
Daniele Bonomi
Daniele Bonomi - avatar
+ 2
um.....Daniele do you know why i get a question mark instead of the unicode symbol? https://code.sololearn.com/cixAAHlJWEIX/?ref=app
13th Sep 2018, 10:38 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
+ 2
if you wish to use unicode symbols Mind To Machine refer to this: https://code.sololearn.com/cEFVRdU0alsM/?ref=app
14th Sep 2018, 8:26 AM
hinanawi
hinanawi - avatar
+ 1
Thanx Daniele....didn't realize it was that simple
13th Sep 2018, 10:33 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
0
I'm not 100% sure but I think that you can't use unicode in Sololearn. Maybe you should try to compile the file outside SoloLearn (I've just checked. I really you can't print unicode) I'm sorry
13th Sep 2018, 10:45 PM
Daniele Bonomi
Daniele Bonomi - avatar
0
Do you wanted to get this? ✁ I've just found this website where it works... http://browxy.com/ this may interest you, too https://stackoverflow.com/questions/5585919/creating-unicode-character-from-its-number
13th Sep 2018, 10:54 PM
Daniele Bonomi
Daniele Bonomi - avatar