Skip to content

Instantly share code, notes, and snippets.

@charafmrah
Last active September 1, 2021 12:11
Show Gist options
  • Save charafmrah/fd7506fa531b3f00590f3535d0cb7fcf to your computer and use it in GitHub Desktop.
Save charafmrah/fd7506fa531b3f00590f3535d0cb7fcf to your computer and use it in GitHub Desktop.
Which one came first, the egg or chicken? answered using code
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