I want to make a calculator for area and volume, but I've encountered a Problem. In the 143rd line of my code (marked with "-->" in the code) the "else" is marked as an Error and i cant run the code
...
if (str.equals("Square") || str.equals("square"))
{
do
{
...
else if(str.equals("Square volume") || str.equals("square volume")) {
...
else if(str.equals("triangle") || str.equals ("Triangle"))
{
...
else if(str.equals("circle") || str.equals("Circle"))
{
...
else if(str.equals("ball volume") || str.equals("Ball vloume"));
{
...
----> else if(str.equals("triangle volume") || str.equals("Triangle volume"));
{ //unexpected Problem
...
}
}
}
Aucun commentaire:
Enregistrer un commentaire