Java Reference
In-Depth Information
* @return the first
*/
public String getFirst() {
return first;
}
/**
* @param first the first to set
*/
public void setFirst(String first) {
this.first = first;
}
/**
* @return the last
*/
public String getLast() {
return last;
}
/**
* @param last the last to set
*/
public void setLast(String last) {
this.last = last;
}
. . .
}
Next, let's take a look the JavaScript file that makes use of the Employee class.
This JavaScript code creates a couple of Employee instances and then prints them
back out. It also uses the java.util.Date class to demonstrate using standard Java
classes.
var oldDate = Java.type("java.util.Date");
var array = Java.type("java.util.ArrayList");
var emp
Search WWH ::




Custom Search