Added comments.

This commit is contained in:
Ilkka Seppälä
2015-05-24 22:19:52 +03:00
parent bff34cfd21
commit e0bf323c95
4 changed files with 41 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Oliphaunts are expensive to create
*
*/
public class Oliphaunt {
private static int counter = 1;
@@ -8,6 +13,11 @@ public class Oliphaunt {
public Oliphaunt() {
id = counter++;
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public int getId() {