Click here to Skip to main content
12,746,668 members (30,687 online)
Click here to Skip to main content


Posted 5 Nov 2012

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...



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


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


About the Author

United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170215.1 | Last Updated 6 Nov 2012
Article Copyright 2012 by AllainLG
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid