0

Hey guys.. i am currently doing my java assignment can i dont get how to do this question.

A) Using the for statement, write a Java program that reads 10 integer values from the user and prints the highest value entered.

B) Using a relevant conditional loop, write a Java program that determines and prints the number of times the character 'a' appears in a String object called name. State your assumption.

C) Write a Java program that prints the characters stored in a String object called str backwards.

It will be great if i could get help!

3
Contributors
2
Replies
16
Views
3 Years
Discussion Span
Last Post by Muni123
0

I am not going to show you the whole code.
A) But as a heads up, you accept a user unput
check if it's not a negative number
limit the user input to below 10 hint use a for loop
then after getting all the user inputs check the highest value

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.