@nabbit123/

Project#15a

Java

No description

fork
loading
Files
  • Main.java
  • Main.class
  • Sorts.class
  • Sorts.java

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7345470155201872","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"cHVibGljIGNsYXNzIE1haW4KewovLy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCi8vIENyZWF0ZXMgYW4gYXJyYXkgb2YgZ3JhZGVzLCBzb3J0cyB0aGVtLCB0aGVuIHByaW50cyB0aGVtLgovLy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCnB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQp7CmludFtdIGdyYWRlcyA9IHs4OSwgOTQsIDY5LCA4MCwgOTcsIDg1LCA3MywgOTEsIDc3LCA4NSwgOTN9OwpTb3J0cy5zZWxlY3Rpb25Tb3J0IChncmFkZXMpOwpmb3IgKGludCBpbmRleCA9IDA7IGluZGV4IDwgZ3JhZGVzLmxlbmd0aDsgaW5kZXgrKykKU3lzdGVtLm91dC5wcmludCAoZ3JhZGVzW2luZGV4XSArICIgIik7Cn0KfQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public class Main
{
//-----------------------------------------------------------------
// Creates an array of grades, sorts them, then prints them.
//-----------------------------------------------------------------
public static void main (String[] args)
{
int[] grades = {89, 94, 69, 80, 97, 85, 73, 91, 77, 85, 93};
Sorts.selectionSort (grades);
for (int index = 0; index < grades.length; index++)
System.out.print (grades[index] + " ");
}
}