mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
import processing.core.*;
|
|
import processing.data.*;
|
|
import processing.event.*;
|
|
import processing.opengl.*;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Collections;
|
|
import java.util.Comparator;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.ArrayList;
|
|
import java.io.File;
|
|
import java.io.BufferedReader;
|
|
import java.io.PrintWriter;
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
import java.io.IOException;
|
|
|
|
public class bug1516 extends PApplet {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setup()
|
|
{
|
|
List<String> list = new ArrayList<String>();
|
|
list.add("foo");
|
|
list.add("bar");
|
|
list.add("baz");
|
|
|
|
Comparator<String> comparator = new Comparator<String>()
|
|
{
|
|
public int compare(final String value0, final String value1)
|
|
{
|
|
return value0.compareTo(value1);
|
|
}
|
|
};
|
|
|
|
Collections.sort(list, comparator);
|
|
}
|
|
static public void main(String[] passedArgs) {
|
|
String[] appletArgs = new String[] { "bug1516" };
|
|
if (passedArgs != null) {
|
|
PApplet.main(concat(appletArgs, passedArgs));
|
|
} else {
|
|
PApplet.main(appletArgs);
|
|
}
|
|
}
|
|
}
|