1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-09 00:06:47 +02:00

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");
}
// 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.
@@ -477,12 +477,12 @@ public interface Digestible {
public class Fruit implements Edible, Digestible {
@Override
public void eat() {
// ...
// awesome code goes here
}
@Override
public void digest() {
// ...
// awesome code goes here
}
}
@@ -492,10 +492,12 @@ public class ExampleClass extends ExampleClassParent implements InterfaceOne,
InterfaceTwo {
@Override
public void InterfaceOneMethod() {
// awesome code goes here
}
@Override
public void InterfaceTwoMethod() {
// awesome code goes here
}
}