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

Thread: Implementation of method in one class

  1. #1
    Junior Member
    Join Date
    May 2013
    Location
    PNG
    Posts
    4
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Implementation of method in one class

    Any samples of how to write a code in java that initializes array x with random integer values..


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Implementation of method in one class

    Please read this: Announcements - What's Wrong With My Code?
    Format your code accordingly. Ask specific questions and don't expect anybody to do your assignment for you.

  3. The Following User Says Thank You to PhHein For This Useful Post:

    Tmolonges (May 23rd, 2013)

  4. #3
    Junior Member
    Join Date
    May 2013
    Location
    PNG
    Posts
    4
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Implementation of method in one class

    ok m sorry....its just so hard....thats why..

  5. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Implementation of method in one class

    No, it's not. You're overwhelmed by it, that's all. Break it up into small bits. Start with a new method init(x). Once you've declared it, you start filling the array. After that you start thinking about the next method.

  6. #5
    Junior Member
    Join Date
    May 2013
    Location
    PNG
    Posts
    4
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Implementation of method in one class

    ok ive tried that for like 3 days ago n seriously its hard you know why coz m a beginner and my teacher is teaching advanced n i hate to admit i definitley dnt understand anything of java...thats y i just wrote everything..my apologies..

Similar Threads

  1. Call class method from another class
    By NewbieJavaProgrammer in forum Object Oriented Programming
    Replies: 1
    Last Post: November 21st, 2012, 06:56 AM
  2. need to make basic class and implementation class (base class without void main)
    By javanewbie101 in forum Object Oriented Programming
    Replies: 1
    Last Post: September 19th, 2012, 08:03 PM
  3. create a test class (main method) to start(run) the class in Java
    By curious725 in forum Java Theory & Questions
    Replies: 5
    Last Post: August 1st, 2012, 03:21 AM
  4. Implementation of remove method in linkedlist Iterator
    By jay2you in forum Collections and Generics
    Replies: 3
    Last Post: October 12th, 2011, 09:16 AM
  5. Newbie questions about lesson on class implementation
    By Jonnybravo9 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 7th, 2010, 09:04 PM