The Solution class has a getShapeNameByCornerCount(int) method that returns the name of a polygon depending on the number of its corners.
Your task is to rewrite the method using only a switch statement.
Types of polygons
- 14
Locked
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Evan
27 February, 04:14
Broken task
0
Nicolae Span
12 January, 09:08
Can someone please explain to me why using break in this problem is incorrect? thank you
0