Running on Java 19-ea+23-1706 (Preview)
Home of The JavaSpecialists' Newsletter

2.14 Committing our "shuffle" method

Juppies 2 by Dr Heinz M. Kabutz

The shuffling functionality might be quite useful. We thus want to move that to a separate class and make the method public so that other classes can use it. But before we do, let's commit what we have done so far. We are now committing an intermediate step with code that is not completely correct. As we saw in our last section, the shuffling always returns the same order. We will need to fix this, and the final version that we will push to our GitHub repository will have all our changes in a series of commits. Remember to only push code to the repository that also builds and runs correctly. Breaking a build in a team usually means that we will be paying for the Friday beers at the local watering hole.


When you load these comments, you'll be connected to Disqus. Privacy Statement.

Table of Contents

We hope you enjoyed this tutorial. If you did, you will also enjoy our courses. We suggest you start with Extreme Java - Advanced Java, followed by Extreme Java - Concurrency Performance for Java 8.

About the Author

Heinz Kabutz Java Conference Speaker

Java Champion, author of the Javaspecialists Newsletter, conference speaking regular... About Heinz

Superpack '22

Superpack '22 Our entire Java Specialists Training in one huge bundle more...

Free Java Book

Dynamic Proxies in Java Book
Java Training

We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.

Java Consulting

We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...

Java Emergency?

If your system is down, we will review it for 15 minutes and give you our findings for just 1 € without any obligation.