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.


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

Results 1 to 2 of 2

Thread: please help solve this question

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Thanked 0 Times in 0 Posts

    Exclamation please help solve this question

    I'm not sure if this would even be the right forum to put this in but here it goes. I have this homework my teacher assign us a couple of days ago. I don't need help coding it but i do need help understanding the question he has giving us.

    here the question:

    Design a class named as DigitalMusic. First, your digital music is stored in an array of integers (could contain negative integers). You may assume that your music has at most 1,000,000 digits. So your class has to have an array attribute for storing your music and an int attribute for storing the number of digits in your music. This class should have at least one constructor and two method: trimLeadingSilence and softenMusic. Your constructor should create an object by zeros in the array(a mutator). the softenMusic method has an int parameter called limit, Changes a value in the array that is greater than limit to limit and a value that is less then limit to limit, and returns the number of values changed. Don't forget to document your program and test each method in a main program.

    any help would be greatly appreciated,

    thank you.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,530 Times in 2,481 Posts

    Default Re: please help solve this question

    Do you have any specific java programming questions about your assignment?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Please can anyone help solve this ?
    By jennyb in forum Java Theory & Questions
    Replies: 1
    Last Post: January 6th, 2012, 09:45 PM
  2. using while to solve this question !
    By deathpain in forum Java Theory & Questions
    Replies: 2
    Last Post: November 19th, 2011, 04:46 PM
  3. solve it plz
    By tillu in forum Java Theory & Questions
    Replies: 4
    Last Post: December 17th, 2010, 01:45 PM
  4. please solve this question on html:multibox?
    By tejz in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: February 13th, 2010, 03:18 AM
  5. Replies: 2
    Last Post: May 16th, 2009, 05:23 AM