Results 1 to 2 of 2
  1. #1
    judemartin99 is offline Member
    Join Date
    Feb 2013
    Posts
    12
    Rep Power
    0

    Default Generic method Java tutoring help

    Write a generic method that will process a 1-dimensional array. The method will compare each element location with the next location to its
    right. If not equal to and not greater than, add 1 to a counter. The counter will therefore keep track of the number of element values that are
    out of order. Once all compares are completed, the method returns the integer count

    I would I start this and can you explain to me the process of creating it. thanks for the help

    BTW this is not homework I am just practicing from a java practice workbook and I really want to know how to do this problem thanks

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,620
    Rep Power
    5

    Default Re: Generic method Java tutoring help

    You have posted some very basic questions in that last few minutes. Do you have a book on Java which you are reading? IMO, the best way to learn a language supplemented by writing some simple programs. Also, check out the tutorial link in my signature. Go through it from the beginning. It should help a great deal.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

Similar Threads

  1. output to file? (tutoring)
    By comptechgivinsky in forum New To Java
    Replies: 7
    Last Post: 10-31-2012, 04:08 PM
  2. Agent Based Tutoring System
    By Amedeo_Sookaloo in forum Advanced Java
    Replies: 3
    Last Post: 01-07-2012, 05:27 PM
  3. About generic, cant use method
    By oszc in forum New To Java
    Replies: 4
    Last Post: 09-13-2011, 06:35 PM
  4. Generic method
    By jomypgeorge in forum New To Java
    Replies: 6
    Last Post: 01-18-2011, 05:51 AM
  5. Generic method problem
    By counterfox in forum New To Java
    Replies: 6
    Last Post: 10-24-2010, 06:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •