Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Java program compute number of times a character appears HELP (https://www.askmehelpdesk.com/showthread.php?t=824525)

  • May 9, 2016, 04:37 AM
    h007
    Java program compute number of times a character appears HELP
    Design a program to compute the number of times the character e occurs in a string s. The program should not distinguish between lower and upper case characters.
    For example if the user entered the following input:

    char e = ‘t’
    String s = “aCT5De HTEetbN1”

    Then the output would be 3.
    In your answer clearly detail the design of the program as well as creating the code for the solution.
  • May 9, 2016, 06:41 AM
    CravenMorhead
    While I could bang this out in about 5 minutes and probably 20 lines of documented code, I am not going to do your homework for you. You need to learn how to do simple loops.

    What do you have already? I can help you with road blocks from there on in.

  • All times are GMT -7. The time now is 09:25 PM.