DOC PREVIEW
OSU CSE 1223 - CL5A

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:

ClosedLab05a author version 20141010 public class ClosedLab05a public static String str public static int count digits int len str length int count 0 for int i 0 i len i if Character isDigit str charAt i count return count public static String reverse string int len str length char temp str toCharArray for int i 0 i len 2 i char ch temp i temp i temp len i 1 temp len i 1 ch return String valueOf temp public static void main String args throws Exception Scanner input new Scanner System in Exercise 1 System out print Enter a string to count the digits in str input next System out println Your string contains count digits digits Exercise 2 System out print Enter a string to reverse str input next System out println reverse string


View Full Document

OSU CSE 1223 - CL5A

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

CL11B

CL11B

2 pages

CL11A

CL11A

2 pages

CL10A

CL10A

2 pages

Load more
Download CL5A
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 CL5A 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 CL5A 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?