Skip to content

Job interview exercises with java 8 applying Api Stream, Java Collection Framework, Lambdas Expression, others.

Notifications You must be signed in to change notification settings

andresWeitzel/Job_interview_exercises_Java_8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

Job_interview_exercises_Java_8

Job interview exercises with java 8 applying Api Stream, Java Collection Framework, Lambdas Expression, others.


Index πŸ“œ

See

Java Collection Framework




Project execution πŸ”

See



String Methods

Using ArrayList Method πŸ”


Write a Java program to create a list of arrays, add some values (of type strings) and print the collection.

See solution

Code

import java.util.*;
public class Random {
 public static void main(String[] args) {
 List<String> list = new ArrayList<String>();
 list.add("First string");
 list.add("Second string");
 list.add("Third string");
 System.out.println(list);
}
}

Console

[First string, Second string, Third string]


About

Job interview exercises with java 8 applying Api Stream, Java Collection Framework, Lambdas Expression, others.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published