Commit 26b75120 authored by pysaumont's avatar pysaumont
Browse files

Changed variable names

parent 96ed695b
......@@ -9,7 +9,7 @@ public class TestPropertyString {
public static void main(String... args) throws IOException {
Properties properties = new Properties();
properties.load(new StringReader("id:3\nfirstName:Jeanne\nlastName:Doe"));
properties.load(new StringReader("id:3\nfirstName:Jane\nlastName:Doe"));
String firstName = properties.getProperty("firstName");
System.out.println(firstName);
}
......
......@@ -31,7 +31,7 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public Tree<A> insert(A value) {
public Tree<A> insert(A insertedValue) {
throw new IllegalStateException("To be implemented");
}
......@@ -69,7 +69,7 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public Tree<A> insert(A value) {
public Tree<A> insert(A insertedValue) {
throw new IllegalStateException("To be implemented");
}
......
......@@ -31,8 +31,8 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public Tree<A> insert(A value) {
return new T<>(empty(), value, empty());
public Tree<A> insert(A insertedValue) {
return new T<>(empty(), insertedValue, empty());
}
@Override
......@@ -69,12 +69,12 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public Tree<A> insert(A value) {
return value.compareTo(this.value) < 0
? new T<>(left.insert(value), this.value, right)
: value.compareTo(this.value) > 0
? new T<>(left, this.value, right.insert(value))
: new T<>(this.left, value, this.right);
public Tree<A> insert(A insertedValue) {
return insertedValue.compareTo(this.value) < 0
? new T<>(left.insert(insertedValue), this.value, right)
: insertedValue.compareTo(this.value) > 0
? new T<>(left, this.value, right.insert(insertedValue))
: new T<>(this.left, insertedValue, this.right);
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment