Is it possible to create a new java file from an existing java file after changing some of its attributes at runtime?
Suppose I have a java file
pubic class Student{
private int rollNo;
private String name;
}
you can create something like this, provided that rollNo is a key element for the table.
public class Student {
private StudentKey key;
private String name;
}
public class StudentKey {
private int rollNo;
}
please, help..
source
share