I'm trying to write a recursive method that will print a char c, x amount of times on the same line. I was thinking that I could return the recursive function call and concatenate the char c but I don't think my compiler agrees. What exactly are the properties of chars and how can I go about doing this?
d4n0wnz
0
Newbie Poster
Recommended Answers
Jump to PostWhat is your code
Jump to Postextend the char ,make it a object
Cannot extend char (Character class). It is final.
All 7 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Vilice
-2
Junior Poster in Training
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
ChaseVoid
30
Junior Poster
Vilice
-2
Junior Poster in Training
ChaseVoid
30
Junior Poster
Vilice
-2
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.