Skip to content
Advertisement

I want to add a function in a println

I’m trying to add the name input by the user into a printline in Java

JavaScript

I want to add it at the part of the text “rode the…”

Advertisement

Answer

JavaScript

When you run the above code, you won’t see anything printed until you enter a value and press ENTER. If, for example, you enter Jabberwocky1 then the following line will be displayed:

JavaScript

1Jabberwocky

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement