DOC PREVIEW
OSU CSE 1223 - CL11B

This preview shows page 1 out of 2 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

ClosedLab10a author version 20141010 public class Closedlab10a import java util import java lang import java io class Ideone public static void main String args throws java lang Exception int num i j Scanner in new Scanner System in String s do System out println Please enter the number of digits to be stored s in nextLine num Integer parseInt s if num 0 System out println ERROR You must enter a non negative number of digits while num 0 if num 0 System out println No digits to store Goodbye else int arr new int 100 for i 0 i num i System out println Enter integer i s in nextLine arr i Integer parseInt s System out println Array before sorting System out println The contents of your array System out println Number of digits in array num System out println Digits in array for i 0 i num i System out print arr i System out println nArray after sorting for i 0 i num i for j i 1 j num j if arr i arr j arr i arr j arr i arr j arr i System out println Number of digits in array num System out println Digits in array for i 0 i num i System out print arr i


View Full Document

OSU CSE 1223 - CL11B

Documents in this Course
PRO12A

PRO12A

3 pages

PRO11A

PRO11A

4 pages

PRO10A

PRO10A

3 pages

PRO9A

PRO9A

3 pages

PRO8A

PRO8A

3 pages

PRO7A

PRO7A

2 pages

PRO6A

PRO6A

2 pages

PRO4A

PRO4A

3 pages

PRO3A

PRO3A

3 pages

CL13A

CL13A

2 pages

CL11A

CL11A

2 pages

CL10A

CL10A

2 pages

CL5A

CL5A

2 pages

Load more
Download CL11B
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view CL11B and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view CL11B and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?