hi , i want to ask if some one know how can i calculate number of variables or used variables in a java file?
is there any way to do it?
ateeq90
0
Newbie Poster
Recommended Answers
Jump to PostAre you asking for the information that would be shown in a variable cross reference listing if the compiler were to generate such a thing?
You'd need a java language parser to scan the source and generate a cross reference.
Jump to Postor, if you mean you want to know how many instances are made from a certain object, use a static counter.
All 6 Replies
NormR1
563
Posting Sage
Team Colleague
stultuske
1,116
Posting Maven
Featured Poster
ateeq90
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
ateeq90
0
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.