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 2 of 2

Thread: Need help with my Assignment!

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Need help with my Assignment!

    Hi everyone,
    I'm still at Level 1 of Java language. I have this assignment due in 2 days. I'm not able to solve.

    Can anyone help please?

    Write a recursive Java method countDigitx that takes two integer numbers as input (a number n and digit x) and returns the number of times digits x occurs in number n:
    For example if n=23242 and x=2 then the method should return 3 that is the number of times the number 2 found in n.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,282
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: Need help with my Assignment!

    What have you tried?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Behaviour of shortcut assignment and normal assignment for float
    By rakeshkr2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 20th, 2014, 03:54 AM
  2. Assignment
    By sabeeh in forum Java Applets
    Replies: 19
    Last Post: January 22nd, 2013, 11:14 AM
  3. assignment help
    By suddenark in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 23rd, 2011, 12:11 AM
  4. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 11:01 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM

Tags for this Thread