Click here to Skip to main content
12,242,692 members (57,018 online)
Click here to Skip to main content

Stats

1.7K views
Posted

How to get the input file's class without knowing it (java)

, 6 Nov 2012 CPOL
Hi, I can't figure out, how to use getDeclaredMethods() (reflection) if the user chooses the file from GUI.Something like this:Class inclass= Class.forName("ClassName");Method[] methods = inclass.getDeclaredMethods(); But I don't know "ClassName", I get it later.I'd like to get...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 6-Nov-12 7:37 Available Nelek
Updates in content. 394 changes had been made.
1 No 5-Nov-12 19:02 Available AllainLG

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

AllainLG
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 6 Nov 2012
Article Copyright 2012 by AllainLG
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid