Created
August 14, 2022 18:27
-
-
Save JoshuaFox/291edc84e650358caa76e6cdd97f38aa to your computer and use it in GitHub Desktop.
Java loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<Integer> main() { | |
List<Integer> result = new ArrayList<>(); | |
for (int i = 0; i < 4; i++) { | |
result.add(i * i); | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment