I have homework that asks me to use a .class file for my project, but I don't know how to use those files in a .java file. This is the project structure
agentes.class
datos_confidenciales.class
II_Parcial_2007_1.doc
Main.java
numeros.class
I mean, I got to make a class called Main that implements the numeros interface, the numeros interface is in numeros.class file
I've googled but no results.
One option is to decompile the class-file, which will get you a java-file of the interface that was compiled.
If you don't want to use a decompiler, write a small application that will reflect the
numerosclass and prints out all methods and their parameter-types and return-types, so you can implement it.Of course you could always use an IDE, with the class-file in module-path, your IDE will assist you to implement the interface.