Pages

Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Thursday, October 27, 2016

Polygon

See Also


Possible Scores

  • Quadrilateral score: 45
  • Parallelgram score: 55
  • Rhomboid score: 55
  • Rhombus score: 55
  • Rectangle score: 55
  • Square score: 55
  • Total score: 320


Sunday, October 23, 2016

Java: extends and super

Example: Foo ← Bar

class Foo {
  private String bar;
  Foo(String bar) { this.bar = bar; }
  String foo() { return bar; }
  String bar() { return this.foo(); }
  static String BAR() { return "FOOBAR"; }
}

class Bar extends Foo {
  Bar() { super("BAR"); }
}

class fooBar {
  public static void main(String[] args) {
    System.out.println("Foo.BAR(): " + Foo.BAR());
    Foo foo = new Foo("FOO");
    System.out.println("foo.bar(): " + foo.bar());
    Bar bar = new Bar();
    System.out.println("bar.bar(): " + bar.bar());
  }
}
See Also

Sunday, October 16, 2016

One-Button Stopwatch

Hanhart


On 1 July 1882, the Swiss watchmaker Johann A. Hanhart opened a watch shop in Diessenhofen, in north-eastern Switzerland. In 1902, he relocated his business to Schwenningen, southern Germany. In 1924, Hanhart launched its first stopwatch, and a short time later, the product range was extended to include pocket watches and wristwatches. From 1932 onwards, following the death of his father, Wilhelm Julius Hanhart concentrated on manufacturing raw movements. In 1938, the first single-button chronograph with the "Calibre 40" entered series production, pilot’s chronographs followed in 1939.

Source: https://en.wikipedia.org/wiki/Hanhart
retrieved on 16 October 2016

Wednesday, October 12, 2016

Partial Traditional Stopwatch

WARNING: This one might go down in flames or be subject to recall!

Tuesday, October 11, 2016

Math Class Quiz

Monday, October 10, 2016

Math Class (Java)

Thursday, October 6, 2016

Ten Second Sketch

This is an example of a Java solution to Exercise[20].