瀏覽代碼

hello-world: reword HINT.md

Frida Johanne Tveit 9 年之前
父節點
當前提交
8922256d48
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. 5
    2
      exercises/hello-world/HINT.md

+ 5
- 2
exercises/hello-world/HINT.md 查看文件

@@ -1,4 +1,7 @@
1
-The starter implementation for this exercise uses [UnsupportedOperationException](http://docs.oracle.com/javase/8/docs/api/?java/lang/UnsupportedOperationException.html). 
2
-This [exception](https://docs.oracle.com/javase/tutorial/essential/exceptions/) will cause the test to fail with the provided error message. 
1
+The default implementation for this exercise uses an [exception](https://docs.oracle.com/javase/tutorial/essential/exceptions/) 
2
+which will cause the test to fail with the provided error message.
3
+This particular exception type, [UnsupportedOperationException](http://docs.oracle.com/javase/8/docs/api/?java/lang/UnsupportedOperationException.html), 
4
+is commonly thrown to alert developers that a method has not yet been implemented.
5
+Throwing exceptions in this manner means the tests will compile but not pass right away.
3 6
 
4 7
 To make the test pass you need to remove the line which throws the exception and replace it with your implementation of the method.