Originally posted by Ken Terp:
I guess that's why I am so confused. Here's are the instructions exactly as they were given to me.
Write the getCharType method.
Place the method defination code below the main method of the existing program class.
Include the modifier static in the method header.
Okay, they want you to declare a new static method named "getCharType" below the apparently existing main method. Do you know how to do that?
Originally posted by Ken Terp:
The getCharType method must:
Take one parameter as input: the promo type as a value of type char.
Determine the full name of the promo type, ie Free shipping, Coupon, Special promo or None.
Return the full name of the promo type as a string.
Thats the instruction I was given. Can it be done? Because I've been trying for about 14 hours now and can't find a way.
So you need one parameter that is a char and you must return a String. Do you know how to declare a method returns a String and accepts one char as a parameter?
Once you do that worry about how to make the actual conversion.