This file contains hidden or 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
package com.learnquest.propertyeditor; | |
import java.beans.PropertyEditor; | |
import java.beans.PropertyEditorSupport; | |
public class Test { | |
public static void main(String[] args) { | |
Person p = new Person("Sarah:Garwood"); | |
System.out.println(p.toString()); |
This file contains hidden or 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
package com.learnquest; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Target; | |
@Target(ElementType.TYPE) | |
public @interface ClassPreamble { | |
String[] authors(); | |
double version() default 1.0; | |
} |
This file contains hidden or 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
import org.apache.log4j.Logger; | |
/** | |
* Hello world! | |
* | |
*/ | |
public class App { | |
private static Logger log = Logger.getLogger(App.class); | |
@Override |
NewerOlder