Gangmax Blog

自由之思想,独立之精神

How to Return Multiple Values From a Java Method

| Comments

Every Java programmer knows the short answer(and the easiest one) is to create a class with multiple properties each of which is one value that you want to return in the method, and then you return an instance of this class from the method. But in many cases the returned values is just used one time, in such scenarios creating a class is too heavy and unnecessary. In Python, it’s very elegant to return a tuple in such scenarios. But in Java, what is the most elegant way to do it?

Update Ca-certificates

| Comments

Today after running “sudo apt-get update & sudo apt-get dist-upgrade”, the “ca-certificates” package is updated with the following output.