Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Reimers, Dominik
fpinjava
Commits
26b75120
Commit
26b75120
authored
Feb 14, 2016
by
pysaumont
Browse files
Changed variable names
parent
96ed695b
Changes
3
Hide whitespace changes
Inline
Side-by-side
fpinjava-parent/fpinjava-applications/src/main/java/com/fpinjava/application/listing15_04/TestPropertyString.java
View file @
26b75120
...
...
@@ -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:J
ean
ne\nlastName:Doe"
));
properties
.
load
(
new
StringReader
(
"id:3\nfirstName:J
a
ne\nlastName:Doe"
));
String
firstName
=
properties
.
getProperty
(
"firstName"
);
System
.
out
.
println
(
firstName
);
}
...
...
fpinjava-parent/fpinjava-trees-exercises/src/main/java/com/fpinjava/trees/exercise10_01/Tree.java
View file @
26b75120
...
...
@@ -31,7 +31,7 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public
Tree
<
A
>
insert
(
A
v
alue
)
{
public
Tree
<
A
>
insert
(
A
insertedV
alue
)
{
throw
new
IllegalStateException
(
"To be implemented"
);
}
...
...
@@ -69,7 +69,7 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public
Tree
<
A
>
insert
(
A
v
alue
)
{
public
Tree
<
A
>
insert
(
A
insertedV
alue
)
{
throw
new
IllegalStateException
(
"To be implemented"
);
}
...
...
fpinjava-parent/fpinjava-trees-solutions/src/main/java/com/fpinjava/trees/exercise10_01/Tree.java
View file @
26b75120
...
...
@@ -31,8 +31,8 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public
Tree
<
A
>
insert
(
A
v
alue
)
{
return
new
T
<>(
empty
(),
v
alue
,
empty
());
public
Tree
<
A
>
insert
(
A
insertedV
alue
)
{
return
new
T
<>(
empty
(),
insertedV
alue
,
empty
());
}
@Override
...
...
@@ -69,12 +69,12 @@ public abstract class Tree<A extends Comparable<A>> {
}
@Override
public
Tree
<
A
>
insert
(
A
v
alue
)
{
return
v
alue
.
compareTo
(
this
.
value
)
<
0
?
new
T
<>(
left
.
insert
(
v
alue
),
this
.
value
,
right
)
:
v
alue
.
compareTo
(
this
.
value
)
>
0
?
new
T
<>(
left
,
this
.
value
,
right
.
insert
(
v
alue
))
:
new
T
<>(
this
.
left
,
v
alue
,
this
.
right
);
public
Tree
<
A
>
insert
(
A
insertedV
alue
)
{
return
insertedV
alue
.
compareTo
(
this
.
value
)
<
0
?
new
T
<>(
left
.
insert
(
insertedV
alue
),
this
.
value
,
right
)
:
insertedV
alue
.
compareTo
(
this
.
value
)
>
0
?
new
T
<>(
left
,
this
.
value
,
right
.
insert
(
insertedV
alue
))
:
new
T
<>(
this
.
left
,
insertedV
alue
,
this
.
right
);
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment