At any level of programmer's career (while hobying, studying or working) such formatting should not be tolerated.
I couldn't think of a single reason, why person who writes the code would do that - that simply makes thinking process harder than it supposed to be.
Elizabeth Lopez-Armenta wrote:Your program must contain a method that displays the general information about the fitness center and its charges, a method to get all the necessary information to determine the membership cost, and a method to determine the membership cost. Use appropriate parameters to pass information in and out of a method.
The source code needs to compile without errors to be able to execute it.
What programs are you using to edit and compile your program?
Norm Radder wrote:run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
C:\Users\elopez\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)
Norm Radder wrote:The error message says the jTestfield1 variable is defined as an Object and the Object class does not have a method named getText()
Did you post the current code? I do not see where jTestField1 is defined in the posted code. The IDE thinks it is defined to be an Object???
@Norm Radder this is my current code
private static Object jTextField1;
private static Object jTextField2;
private static Object jTextField3;
But declare it like this:
private JTextField jTextField2;
Did you create the JTextField object as well? I mean with the new keyword?