80

Why does array[idx++]+="a" increase idx once in Java 8 but twice in Ja...

 5 years ago
source link: https://stackoverflow.com/questions/50683786/why-does-arrayidx-a-increase-idx-once-in-java-8-but-twice-in-java-9-and-1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
For a challenge, a fellow code golfer wrote the following code:import java.util.*;public class Main { public static void main(String[] args) { int size = 3; String[] array = new String...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK