Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/School-Work / School Work/OutputNumbers in Reverse.java |
| Date | Not specified in source |
| Repository | Janady13/School-Work |
| Revision | 4a666c890caf7c43c47d0572dbcc287373c7a78e |
| Branch | main |
| Path or archive member | School Work/OutputNumbers in Reverse.java |
| Original SHA-256 | a00f045b21206701bc6c98cedb3492e515b5e23128ba23cda68d2754762baa3c |
| Git blob SHA | fc895b0c01f534a7d5cc9a0bdf38d58c7a82af6e |
| Reading-copy SHA-256 | a00f045b21206701bc6c98cedb3492e515b5e23128ba23cda68d2754762baa3c |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/School-Work / School Work/OutputNumbers in Reverse.java | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
| Janady13/School-Work / School Work/School-Work/School Work/OutputNumbers in Reverse.java | main | 4a666c890caf7c43c47d0572dbcc287373c7a78e | Open original |
Recovered source transcript
Download complete source text ↓21 lines · 0.6 KB
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int[] userList = new int[20]; // List of numElement integers specified by the user
int numElements; // Number of integers in user's list
// Add more variables as needed
numElements = scnr.nextInt(); // Input begins with number of integers that follow
for(int i = 0; i < numElements; i++){
userList[i] = scnr.nextInt();
}
for(int i = numElements-1;i>=0;i--){
System.out.print(userList[i]+",");
}
System.out.println();
}
}