Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: hi i need help

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default hi i need help

    hi i try to write the code for this question but i don't have that much of experience in this type of question so could you give me a hand on this plzzzzzzz

    thanks you so much realy for your help




    this is small Hints for the process of the answer i didn't understand it

    Hints: 1.declare a string array.
    2.store the given input of values into it.
    3. repeat the following steps until the last element in the array.
    4. extract the symbols one by one from the string of numbers.[use charAt() method]
    5. convert each extracted symbol into integer digit using parseInt() method in the wrapper class.
    6. add the digits what you obtained in step 5, denote it as sumofdigits.
    These steps are useful hints for achieving task(i).
    for task(ii) and task(iii) you try to apply your programming skill.

    Good Luck
    Attached Files Attached Files
    Last edited by khamis50; February 20th, 2011 at 05:13 AM.

  2. #2
    Junior Member
    Join Date
    Feb 2011
    Posts
    19
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: hi i need help

    1. What seems to be a problem? Have you ever wrote computer program?
    2. Have you tried to write anything? What was the reason that stopped you?
    3. Do you expect the community to write program for you?

  3. #3
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: hi i need help

    String[] str = new String[some size];

    for (int i =0; i < str.length; i++)
    {
    str[i] = value;
    }

  4. The Following User Says Thank You to javapenguin For This Useful Post:

    khamis50 (February 21st, 2011)

  5. #4
    Junior Member
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: hi i need help

    Quote Originally Posted by javapenguin View Post
    String[] str = new String[some size];

    for (int i =0; i < str.length; i++)
    {
    str[i] = value;
    }
    thank you for your help i try to understand the idea and answer the question