0

My java code always shows error (Circle calculator)

https://code.sololearn.com/cbqGorhlHzhn/?ref=app

7th Apr 2020, 1:33 PM
R3ff3ross0
8 Antworten
0
P. S : I got this source code when i convert a flowgorithm to java code
7th Apr 2020, 1:51 PM
R3ff3ross0
0
Comment line no 60. There no method main() so.
7th Apr 2020, 2:27 PM
Jayakrishna 🇮🇳
0
So what should i add then?
7th Apr 2020, 2:28 PM
R3ff3ross0
0
Just remove mian() in line 60. For what that you are adding? If for looping infinitely, use loops, Input: String 5 And check..
7th Apr 2020, 2:31 PM
Jayakrishna 🇮🇳
0
I got that java code converted using flowgorithm
7th Apr 2020, 2:34 PM
R3ff3ross0
0
That code is a calculator In the flowchart i use looping if the user of the calculator dont input R or D, so calculator says error try again and move to the first section
7th Apr 2020, 2:36 PM
R3ff3ross0
0
From main to iferror and vice versa infinitely if user typed Other word instead of 'R' or 'D'
7th Apr 2020, 2:37 PM
R3ff3ross0
0
Write ifError(); inplace of main(). Try to write your own code by this.. Observe that, code written in main method is same in isError() function, so you can delete from main, dublicate code and call isError() method, and if error again call isError() method...
7th Apr 2020, 2:44 PM
Jayakrishna 🇮🇳