Program Java Basic

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Programming I Final Requirement (By Pair) Select only 3 out of 5 problems

1. Write a Java program that asks the user to enter a String S and a character C, and displays whether C occurs in S or not. 2. Write a Java program that asks the user to enter a String S and a character C, and displays the number of times C occurs in S. 3. Create a Java program that asks the user to enter a positive integer N and displays how many digits are in N. 4. Create a Java program that asks the user to enter a positive integer X and displays whether X is a prime number or not. 5. Write a Java program that accepts String H as input and displays the String in reverse.

Send the source code (compressed RAR or ZIP file) via email To: romehyo@gmail.com Subject: Final Requirement Programming I Deadline: March 15, 2011

You might also like