Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132937 views
License: OTHER
1
import java.util.Arrays;
2
3
public class Main {
4
public static void main(String[] args) {
5
String[] myStrings = new String[5];
6
myStrings[0] = "I";
7
myStrings[1] = "think";
8
myStrings[2] = "therefore";
9
myStrings[3] = "I";
10
myStrings[4] = "am";
11
12
System.out.println(Arrays.asList(myStrings));
13
Arrays.sort(myStrings);
14
System.out.println(Arrays.asList(myStrings));
15
}
16
}
17
18