Results 1 to 4 of 4
  1. #1
    willc86 is offline Member
    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Default what do they mean call a method called "myInfo"

    HI i am a bit new to java and I am not sure about methods.

    this is what its asking


    Variable Name Variable Contents
    myName = place your name here
    creditsTaken = place your credits taken this semester
    totalCredits = place your total amount of credits taken
    GPA = place your current GPA
    major = place your major
    className = place the name of this class

    - Call a method named myInfo PASSING the previous variables





    and this is what I have I am not sure what they mean by asking "call a method named myInfo"




    public static void main(String[] args) {



    String myName, Major, className;
    Double creditsTaken, totalCredits, GPA;
    int maxValue, addNumbers;

    myName = "william";
    Major = "information technology";
    className = "operating Systems";


    creditsTaken = 9.0;
    totalCredits = 70.0;
    GPA = 3.1;

    maxValue = 100;




    addNumbers = maxValue;








    System.out.println();
    System.out.println("hello my name is.... " + myName);

    System.out.println("my major is.... " + Major);

    System.out.println("I have completed " + totalCredits + " credits so far");

    System.out.println("I am taking " + creditsTaken + " credits this semester");

    System.out.println("This class name is...... " + className);
    System.out.println();

    System.out.println(addNumbers + 1);

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,696
    Rep Power
    8

    Default Re: what do they mean call a method called "myInfo"

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,696
    Rep Power
    8

    Default Re: what do they mean call a method called "myInfo"

    Also, please do not post multiple copies of the same thread. I've deleted your duplicate post.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: what do they mean call a method called "myInfo"

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 08:29 AM
  2. Replies: 0
    Last Post: 02-28-2012, 08:13 PM
  3. question about so-called "memory consistency errors"
    By gib65 in forum Threads and Synchronization
    Replies: 2
    Last Post: 06-20-2010, 04:20 PM
  4. Replies: 6
    Last Post: 06-11-2010, 07:03 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

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