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: Having troubles with Method Headers [Java Programming]! HELP!?

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

    Default Having troubles with Method Headers [Java Programming]! HELP!?

    Had to send some assignments [Deadline already past]
    But I want to learn how to do this for my test!

    Write the header for a method named days. The method should return an int and have three int parameter variables: years, months, and weeks.

    Write a method named timesTen . The method should accept a double argument, and return a double value that is ten times the value of the argument.

    Write a method named getName that prompts the user to enter his or her first name, and then returns the user’s input.

    Thank You for your time


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Having troubles with Method Headers [Java Programming]! HELP!?

    See the tutorial: Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java API or tool to update MS word headers/footers
    By pb@tata in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 7th, 2013, 10:35 PM
  2. How do I connect 2 method headers to make it recursive???
    By tripline in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 5th, 2011, 05:27 AM
  3. Difficulty with method headers.
    By tripline in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 30th, 2011, 10:58 AM
  4. JAVA Programming ReadLine() method
    By AsySyah in forum Java Theory & Questions
    Replies: 1
    Last Post: June 8th, 2011, 09:55 AM
  5. How to remove all Headers from a MimeMessage
    By ArgyrisV in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 8th, 2011, 12:38 PM