Yesterday, June 28, 2016 I finally understood the Enigma Machine!
Wednesday, June 29, 2016
Thursday, June 16, 2016
Friday, May 13, 2016
Always test, test, test ...
Thiokol and Marshall evaluated the SRM and its case joints in structural, pressure, and static firing tests beginning in 1976. Because tests of the large solid rocket were more expensive than liquid engines, engineers ran fewer tests.
Taken from The Challenger Accident http://history.msfc.nasa.gov/book/chptnine.pdf
Wednesday, March 2, 2016
Implementing equals in Java
public class Employee {
protected long employeeId;
protected String firstName;
protected String lastName;
}
public boolean equals(Object o) {
boolean result = false;
if (o instanceof Employee) {
Employee other = (Employee) o;
if (this.employeeId == other.employeeId
&& this.firstName.equals(other.firstName)
&& this.lastName.equals(other.lastName))
{
result = true;
}
}
return result;
}
The following program should print All good!:
package test; /** * * @author janeiros@j4neiros.us
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Equals e = new Equals(3, "jjjj", "eee");
if (e.equals(null)) {
System.out.println("Not good!");
} else {
System.out.println("All good!");
}
}
}
Wednesday, February 3, 2016
Tuesday, February 2, 2016
Subscribe to:
Posts (Atom)


