0

I have just begun to learn java with netbeans, and I noticed when I add println() it actually appears as

 System.out.println(x:"My text goes in here")

The x: appears automatically, and I was wondering what this means, is it a shortcut I can use? Or does it mean I did something wrong?

Bill Teale
  • 159
  • 3
  • 15
  • 1
    It's just displaying the name of the [parameter](https://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html#println-java.lang.String-). – shmosel Nov 16 '22 at 00:28
  • 1
    Related: [Why NetBeans 11 shows parameter name beside value while calling a method?](https://stackoverflow.com/q/66896195/12567365). You can turn this feature off, if you want, using View > Show Inline Hints. – andrewJames Nov 16 '22 at 00:58
  • 1
    Does this answer your question? [Why NetBeans 11 shows parameter name beside value while calling a method?](https://stackoverflow.com/questions/66896195/why-netbeans-11-shows-parameter-name-beside-value-while-calling-a-method) – skomisa Nov 16 '22 at 09:10

0 Answers0