Results 1 to 4 of 4
- 01-22-2013, 06:02 PM #1
Member
- Join Date
- Jan 2013
- Posts
- 1
- Rep Power
- 0
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);
- 01-22-2013, 06:08 PM #2
Re: what do they mean call a method called "myInfo"
Crossposted: what do they mean "call a method named 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!
- 01-22-2013, 06:10 PM #3
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!
- 01-22-2013, 09:02 PM #4
Re: what do they mean call a method called "myInfo"
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
access denied("java.net.SocketPermission" "127.0.0.1:1099" "connect,resolve")
By klspepper in forum New To JavaReplies: 0Last Post: 12-07-2012, 08:29 AM -
Exception: "Can't create handler inside thread that has not called Looper.prepare()"
By tomtaila in forum AndroidReplies: 0Last Post: 02-28-2012, 08:13 PM -
question about so-called "memory consistency errors"
By gib65 in forum Threads and SynchronizationReplies: 2Last Post: 06-20-2010, 04:20 PM -
Sinking into a swamp called "BufferedReader"...SOS...
By niu_niu in forum New To JavaReplies: 6Last Post: 06-11-2010, 07:03 PM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks