You are on page 1of 1

Future University in Egypt

Faculty of Computers and Information Technology

Course Name: Object Oriented/ Advanced Programming


Course Code: CSC112/CS112
Instructor: Dr. Mohamed Hussien
Semester: Spring 2021

Sheet 3

Problem 1: Write a java program that accept a string and print reversed.
Problem 2: Write a Java program that reads name and quiz grade for N students in a course.
The program should print the name of the student with the highest quiz grade.

Assignment-1
Problem 1: Write a Java program that takes a string containing text and non-negative numbers form
the user and prints out the numbers contained in the string in separate lines. If the input is "The year
has 365 days", the Output should be the number contained in the string which is 365.

Problem 2: Write a java program that takes two strings and check if two string are equal or not

Problem 3: Write a java program that accepts two inputs, a String value, and a char value. Your
program should count the total number of times the char appears inside the string

For example:
Input: HELLO

Output: 2

You might also like