Jump to content

A BlueJ related question on variables

SidM

Ya, so I have to write my BlueJ Project for school which is basically a huge computer project which works as an interface for a cafe and prints a bill. Problem is with such a large program(over 2000 lines) I need to write down every variable and it's data type. So is there any way that Java can show me all the variables of the class so I can make a variable list?

 

Thanks a ton.?

Link to comment
Share on other sites

Link to post
Share on other sites

You should be able to mark everything up in the Javadoc format in a day or two.

 

EDIT: To directly answer your question: `YourClass.class.getFields()`

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×