+ 1

How can I get an input for printl?

In the first Java proyect I need to print Welcome to Java but I can't even if I think I'm using the rules Also how can I get a list of Java inputs?

24th Mar 2021, 10:48 PM
Eros Blue Prince 💙
Eros Blue Prince 💙 - avatar
2 Antworten
+ 2
I'll assume you're writing an application with a text-based interface. In other words, your project has no graphical user interface and the user will interact through a command or SSH terminal. Some answers on quora have examples that read in multiple inputs into a java.util.LinkedList: https://www.quora.com/How-do-I-convert-a-number-to-a-linked-list-in-Java-for-example-input-124-output-1-2-4-null I'm sure you want to use a Scanner regardless of the type of data you want to collect. You can print Welcome like this: System.out.println("Welcome"); Printing Welcome and reading values from the user are very different challenges so I'm surprised you mention that in your question.
24th Mar 2021, 11:34 PM
Josh Greig
Josh Greig - avatar
0
for the first java course code coach asking you to print, you doesn't have to use user input... just use System.out.println(), with the exact string (uppercase!=lowercase, punctuation marks) as argument, correctly enclosed by quotes ;)
25th Mar 2021, 3:26 AM
visph
visph - avatar