| Home |
Programming, etc.Here is a utility that creates a PHP class. Here is a Javascript coordinate conversion page that I wrote. Here is a Javascript conversions page that I wrote. Here is a Javascript line numbering utility that I wrote. Here is the source for a Java program that I wrote to calculate compound interest. It cannot be run in your web browser, because it's not an applet. I provide this mainly for fellow Java programmers that would like to play with it. Here is a screenshot. Here is a Java applet that I wrote that shows how long it will take to pay off a loan. Here is the source code. I am still working on it. Here is a Java program that I wrote to generate bean getter, setter, reset, and toString methods based upon a list of variables. For example, if you apply it to the following variable declarations: private String keyId = ""; private String title = ""; private String deptId = "";you get this as a result:
private String keyId = "";
private String title = "";
private String deptId = "";
public String getKeyId() {
return this.keyId;
}
public void setKeyId(String keyIdValue) {
this.keyId = keyIdValue;
}
public String getTitle() {
return this.title;
}
public void setTitle(String titleValue) {
this.title = titleValue;
}
public String getDeptId() {
return this.deptId;
}
public void setDeptId(String deptIdValue) {
this.deptId = deptIdValue;
}
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.keyId = "";
this.title = "";
this.deptId = "";
}
public String toString(){
StringBuffer sb = new StringBuffer();
sb.append("keyId=" + keyId + "\n");
sb.append("title=" + title + "\n");
sb.append("deptId=" + deptId + "\n");
return sb.toString();
}
To run it, type java -jar beancreater.jar
|