ULOG: Java Programming Basics 15 - ConclusionsteemCreated with Sketch.

in #ulog2 years ago (edited)

Lecture 15: Final Remarks


Assignment stream() problem statement
The following names appear in a list: Enos, Mahalaleel, Adam, Seth, Cainan.
Implement the stream() method to sort and print these names in alphabetical order.

Assignment stream() solution solution code
import java.util.List;
List<String> names = List.of("Enos", "Mahalaleel", "Adam", "Seth", "Cainan");
names.stream().sorted().forEach(n -> System.out.print(n + " "));

Assignment stream() output
Adam Cainan Enos Mahalaleel Seth

L15.png

Hi, there, I am Marius from AlefTav Coding with the concluding lecture of my course, Java Programming Basics. In todays blog I will give you an assignment and provide some final remarks.

Course assignment

The assignment brief is, 'The following names appear in a list: Enos, Mahalaleel, Adam, Seth, Cainan. Implement the stream() method to sort and print these names in alphabetical order.'

I am not going to provide you with starting code. If you have worked through the course material you should have enough background information to complete this task by yourself.

Closing remarks

Java, and programming in general, is hard work. To be successful, you need to have a can-do attitude. I believe anyone can do Java programming, provided they are prepared to put in the effort. Because, essentially it is just a skill that can be learnt. This is proven by the current 12 million professional Java developers that are working around the world in every conceivable industry.

Also, there is a big shortage of Java developers. The demand for them, and programmers in general, is increasing rapidly. Java developers are among the best-paid professionals, not just in software, but compared to other highly-paid jobs.

So, if you sense that this is the type of work you enjoy doing, I suggest you go for it.

I am Marius from AlefTav Coding. I look forward to working again with you in a future course, and, as always KEEP CODING.


Join me on Trybe.one (tokenized information-sharing platform) to earn 100 tokens for signing up and 10 tokens for logging in daily:

http://trybe.one/ref/2859/

This post was made from https://ulogs.org

Sort:  

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!