0
My java code always shows error (Circle calculator)
8 Réponses
0
P. S : I got this source code when i convert a flowgorithm to java code
0
Comment line no 60.
There no method main() so.
0
So what should i add then?
0
Just remove mian() in line 60.
For what that you are adding?
If for looping infinitely, use loops,
Input:
String
5
And check..
0
I got that java code converted using flowgorithm
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
0
From main to iferror and vice versa infinitely if user typed Other word instead of 'R' or 'D'
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...