It's been since the mid 90's since I've worked with Java and would like to get back into it. My work revolves around 90% .NET and SQL Server (Windows). I am using an old manual to practice and just can't seem to figure it out.
Trying this signature: public static String myChar(char z)
Here is the problem:
1) If z = 'A', "A" is returned
2) For other values of z, the return value consists of
3 parts:
- the return value for the previous letter (z - 1),
- followed by the letter z itself, and
- followed by a 2nd copy of the return value for the previous letter.
EX: myChar('C') ==> "ABACABA".
Any assistance will be greatly appreciated.
Trying this signature: public static String myChar(char z)
Here is the problem:
1) If z = 'A', "A" is returned
2) For other values of z, the return value consists of
3 parts:
- the return value for the previous letter (z - 1),
- followed by the letter z itself, and
- followed by a 2nd copy of the return value for the previous letter.
EX: myChar('C') ==> "ABACABA".
Any assistance will be greatly appreciated.