Is it possible to create a function in Java that changes the value of two variables without having to declare a temporary variable?
For example:
int a = 8, b = 3;
if(a > b) {
// algo aqui, sem declarar uma variável "tmp"
}
// agora a...
asked by
04.02.2014 / 13:04