ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/School-Work / School Work/Sort an Array.java

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/School-Work / School Work/Sort an Array.java
DateNot specified in source
RepositoryJanady13/School-Work
Revision4a666c890caf7c43c47d0572dbcc287373c7a78e
Branchmain
Path or archive memberSchool Work/Sort an Array.java
Original SHA-256821d8a1e397a49e28b3c4c6bf7367b35467e7fac91aec78696537b4e7ba7f744
Git blob SHA39cfe04879305279e8ffb2078b57085a3e678dfc
Reading-copy SHA-256821d8a1e397a49e28b3c4c6bf7367b35467e7fac91aec78696537b4e7ba7f744

Original source ↗

Recovered source transcript

import java.util.Scanner; public class LabProgram { public static void sortArray(int[] myArr, int arrSize) { int temp; for (int i = 0; i < arrSize; ++i) { for (int j = 0; j < arrSize - 1; ++j) { if (myArr[j] < myArr[j + 1]) { temp = myArr[j]; myArr[j] = myArr[j + 1]; myArr[j + 1] = temp; } } } } public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int[] numbers = new int[scnr.nextInt()]; for (int i = 0; i < numbers.length; ++i) { numbers[i] = scnr.nextInt(); } sortArray(numbers, numbers.length); for (int i = 0; i < numbers.length; ++i) { System.out.print(numbers[i] + ","); } System.out.println(); } }

Search equations, builds, manuscript text, and recovered sources.