summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTodd M. Guerra <toddguerra@gmail.com>2015-10-08 11:53:19 -0400
committerTodd M. Guerra <toddguerra@gmail.com>2015-10-08 11:53:19 -0400
commit6d3f52b7f01409818853de6148abf1d8fe57fab0 (patch)
treed2c34ca85d6ed1bdf73900bd07abf21639fdb26d
parentabd7444f9e5343f597b561a69297122142881fc8 (diff)
Fix some grammar, spelling and indentation
Just some quick cleanup to make the code correctly formatted in parts and fixed some typos.
-rw-r--r--java.html.markdown30
1 files changed, 16 insertions, 14 deletions
diff --git a/java.html.markdown b/java.html.markdown
index fc7948d6..e020885c 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -337,7 +337,7 @@ public class LearnJava {
validCodes.add("FINLAND");
}
- // But there's a nifty way to achive the same thing in an
+ // But there's a nifty way to achieve the same thing in an
// easier way, by using something that is called Double Brace
// Initialization.
@@ -347,9 +347,9 @@ public class LearnJava {
add("FINLAND");
}}
- // The first brace is creating an new AnonymousInnerClass and the
- // second one declares and instance initializer block. This block
- // is called with the anonymous inner class is created.
+ // The first brace is creating a new AnonymousInnerClass and the
+ // second one declares an instance initializer block. This block
+ // is called when the anonymous inner class is created.
// This does not only work for Collections, it works for all
// non-final classes.
@@ -476,14 +476,14 @@ public interface Digestible {
// We can now create a class that implements both of these interfaces.
public class Fruit implements Edible, Digestible {
@Override
- public void eat() {
- // ...
- }
+ public void eat() {
+ // awesome code goes here
+ }
@Override
- public void digest() {
- // ...
- }
+ public void digest() {
+ // awesome code goes here
+ }
}
// In Java, you can extend only one class, but you can implement many
@@ -491,12 +491,14 @@ public class Fruit implements Edible, Digestible {
public class ExampleClass extends ExampleClassParent implements InterfaceOne,
InterfaceTwo {
@Override
- public void InterfaceOneMethod() {
- }
+ public void InterfaceOneMethod() {
+ // awesome code goes here
+ }
@Override
- public void InterfaceTwoMethod() {
- }
+ public void InterfaceTwoMethod() {
+ // awesome code goes here
+ }
}