This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The annotation | |
public @interface HelloMessage { | |
String value() default ""; | |
} | |
import java.lang.reflect.Field; | |
class HelloWorld { | |
@HelloMessage("hello") | |
public String message; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author xsalefter ([email protected]) | |
*/ | |
public class RandomGenerator { | |
private int sizeOfQuestion; // Mean how much question want to display per user. | |
private Random random; | |
private int dataSize; // This is total amount of data in the database. | |
private StringBuffer generatedRandomNumber; | |
NewerOlder