bowbahdoe commented on issue #5130:
URL: https://github.com/apache/netbeans/issues/5130#issuecomment-2967009940

   I bumped into this last night actually. I was helping someone understand 
their end of semester "translate this python program into Java" assignment 
starting with the anonymous main class version since.
   
   ```java
   void main() {
       String accountNumber = IO.readln("Enter the account number ");
       IO.println("Account number " + accountNumber);
   }
   ```
   is pretty directly explainable as a parallel to
   
   ```java
   account_number = input("Enter the account number ")
   println(f"Account number {account_number}")
   ```
   
   But even though the extension was fine to enable the preview feature that 
allows `void main()` it didn't know about the IO class for whatever reason.
   
   Every time I typed `IO.` it would turn into `IOError.` I needed to first 
write `.readln` then use the arrows to get to the left of the `.` and type `IO` 
again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to