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: java program taking parameters inside a method

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post java program taking parameters inside a method

    Write a method to print sequence of numbers:

    Method should accept two parameters.
    First parameter is first number to display, second parameter should be number of rows to be printed.

    printseries(firstparam,secondparam)

    Sample:
    printseries(7,4)

    Output should be:
    7
    14 15
    28 29 30 31
    56 57 58 59 60 61 62 63


    EXPLAIN THE LOGIC AS WELL.


  2. #2
    Member
    Join Date
    May 2011
    Location
    west palm beach, FL
    Posts
    189
    My Mood
    Tired
    Thanks
    41
    Thanked 11 Times in 10 Posts

    Default Re: java program taking parameters inside a method

    what have you tried so far? we arent here to do your homework you would never learn that way....

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

    jps (July 7th, 2013)

  4. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: java program taking parameters inside a method

    how long should it loop?

  5. #4
    Junior Member
    Join Date
    Jul 2013
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java program taking parameters inside a method

    o

Similar Threads

  1. HELP Scope and Parameters in a program
    By irishkid in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 7th, 2012, 05:29 PM
  2. [SOLVED] Why re-name these method parameters?
    By pict3000 in forum Object Oriented Programming
    Replies: 6
    Last Post: August 9th, 2012, 06:07 AM
  3. Calling method cant get the parameters right
    By frozen java in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 22nd, 2011, 02:23 PM
  4. [SOLVED] Flash animations inside a Java program
    By chronoz13 in forum AWT / Java Swing
    Replies: 1
    Last Post: May 18th, 2011, 03:43 AM
  5. Can you pass parameters from one method into another method?
    By u-will-neva-no in forum Java Theory & Questions
    Replies: 2
    Last Post: April 14th, 2011, 07:46 AM

Tags for this Thread