Last active
September 1, 2021 12:11
-
-
Save charafmrah/fd7506fa531b3f00590f3535d0cb7fcf to your computer and use it in GitHub Desktop.
Which one came first, the egg or chicken? answered using code
This file contains hidden or 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
import java.util.Arrays; | |
//which one came first the egg or the chicken? well this is java's solution: | |
public class eggOrChicken { | |
public static void main(String[] args) { | |
String[] x = {"🥚", "🐓"}; | |
Arrays.sort(x); | |
for (int i = 0; i < x.length; i++) { | |
System.out.println(x[i]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment