Fix some grammar, spelling and indentation

Just some quick cleanup to make the code correctly formatted in parts
and fixed some typos.
This commit is contained in:
Todd M. Guerra 2015-10-08 11:53:19 -04:00
parent abd7444f9e
commit 6d3f52b7f0

View File

@ -337,7 +337,7 @@ public class LearnJava {
validCodes.add("FINLAND"); 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 // easier way, by using something that is called Double Brace
// Initialization. // Initialization.
@ -347,9 +347,9 @@ public class LearnJava {
add("FINLAND"); add("FINLAND");
}} }}
// The first brace is creating an new AnonymousInnerClass and the // The first brace is creating a new AnonymousInnerClass and the
// second one declares and instance initializer block. This block // second one declares an instance initializer block. This block
// is called with the anonymous inner class is created. // is called when the anonymous inner class is created.
// This does not only work for Collections, it works for all // This does not only work for Collections, it works for all
// non-final classes. // non-final classes.
@ -477,12 +477,12 @@ public interface Digestible {
public class Fruit implements Edible, Digestible { public class Fruit implements Edible, Digestible {
@Override @Override
public void eat() { public void eat() {
// ... // awesome code goes here
} }
@Override @Override
public void digest() { public void digest() {
// ... // awesome code goes here
} }
} }
@ -492,10 +492,12 @@ public class ExampleClass extends ExampleClassParent implements InterfaceOne,
InterfaceTwo { InterfaceTwo {
@Override @Override
public void InterfaceOneMethod() { public void InterfaceOneMethod() {
// awesome code goes here
} }
@Override @Override
public void InterfaceTwoMethod() { public void InterfaceTwoMethod() {
// awesome code goes here
} }
} }