24th Jan 2021, 7:31 AM
Amateur
3 Answers
+ 5
You use only void when the function doesn't need to return. Remove double from void double. You need to return string in toString(). Add return strl;
24th Jan 2021, 7:36 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 2
I'm not a Java programmer, but I feel like the problem is the void double (it doesn't make sense, at least not in other lenguages)
24th Jan 2021, 7:40 AM
Angelo
Angelo - avatar
0
Thank ušŸ‘
24th Jan 2021, 7:45 AM
Amateur