Hello, I wanted to ask something about NetBeans. When i insert a method, for example hello(d); I get a message and it automaticaly created the private static void hello function. 1) Why is private? 2)Why the method has an input File 3)What is throe UnsupportedOperationException..... 4)What should i implement in brackets "Not yet implemented" Thank you for your understanding ...As u can see i am a java learner! :)
It appears you are attempting to call a method which doesn't exist which is why netbeans is creating the method for you. As netbeans doesn't know the type forthe parameter it is assigning File. It is private as this is the default. It is throwing the exception because you haven't put any code in it yet.
The method hello() must have code which recieves the parameters "d". The idea being something like the attached, where say is the name of the method, sIn is the parameter for the method. The method takes the parameter and outputs it with System.out...