Skip to content

Update 1-handling-collections-as-streams.md #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/part-10/1-handling-collections-as-streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ ArrayList<Integer> positives = values.stream()
.filter(value -> value > 0)
.collect(Collectors.toCollection(ArrayList::new));

positiiviset.stream()
positives.stream()
.forEach(value -> System.out.println(value));
```

Expand Down
2 changes: 1 addition & 1 deletion data/part-12/2-arraylist-and-hashtable.md
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ public void add(K key, V value) {
values[hashValue] = new List<>();
}

List<Pari<K, V>> valuesAtIndex = values[hashValue];
List<Pair<K, V>> valuesAtIndex = values[hashValue];

int index = -1;
for (int i = 0; i < valuesAtIndex.size(); i++) {
Expand Down
4 changes: 2 additions & 2 deletions data/part-13/4-launch-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ import javafx.application.Application;
import javafx.application.Application.Parameters;
import javafx.stage.Stage;

public class JavaFxApplicationextends Application {
public class JavaFxApplication extends Application {

@Override
public void start(Stage window) {
Expand Down Expand Up @@ -163,7 +163,7 @@ import javafx.application.Application;
public class Main {

public static void main(String[] args) {
Application.launch(JavaFxSovellus.class,
Application.launch(JavaFxApplication.class,
"--organization=Once upon a time",
"--course=Title");
}
Expand Down
2 changes: 1 addition & 1 deletion data/part-14/2-multimedia-in-programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Here we expect that the file `humming.jpg` exists and is located at the root of
In the example we use an image by [Linda Tanner](https://www.flickr.com/photos/15323831@N05) from [http://www.freestockphotos.biz/stockphoto/17874](http://www.freestockphotos.biz/stockphoto/17874). The image has a [Creative Commons CC BY 2.0](https://creativecommons.org/licenses/by/2.0/) lisence.

<!-- ImageView-olio tarjoaa joukon menetelmiä imagen (yksinkertaiseen käsittelyyn). Kuvaa voi muunmuassa kääntää, sen kokoa voi muuttaa, ja sitä voi siirtää ruudulla. Alla olevassa esimerkissä image on käännetty ympäri, sen koko on puolitettu, ja sitä on siirretty hieman oikealle. -->
ImageView object has a punch of methods available for (simple) image processing tasks. We can for example change the size of an image, flip it around or move it on the screen.
ImageView object has a bunch of methods available for (simple) image processing tasks. We can for example change the size of an image, flip it around or move it on the screen.
Below we have flipped the image, halved its size and moved it a bit to the right.


Expand Down