0

Can anyone suggest me what problem in this program I had one error in case1

import java.util.Scanner; class calculator { public static void main(String[] args) { System.out.println("enter your village name first letter"); Scanner sc=new Scanner(System.in); int a=sc.nextInt(); System.out.println("now lets give symols like (a,b,c,d,e,f,g,h) for better result"); string symbol=sc.next(); Switch(symbol); { case"a":System.out.println("your bus is on stand no.1 "); break; case"b":System.out.println("your bus is on stand no.2"); break; case"c":System.out.println("your bus is on stand no.3 "); break; case"d":System.out.println("your bus is on stand no.4 "); break; case"e":System.out.println("your bus is on stand no.5 "); break; case"f":System.out.println("your bus is on stand no.6 "); break; case"g":System.out.println("your bus is on stand no.7 "); break; case"h":System.out.print

11th Jan 2022, 7:14 PM
ABHISHEK MANE
ABHISHEK MANE - avatar
3 odpowiedzi
+ 1
There are some spelling Capitalization mistakes.. May Autocapitalized? ex: string must there Capital S. Switch need small s.. And code is truncated.. Save code in playground and share link here....
11th Jan 2022, 8:20 PM
Jayakrishna 🇮🇳
0
I can see that bh using your changes and we compile it but we are not able to run that program there is some error and which is not recognized by mee
12th Jan 2022, 7:40 PM
ABHISHEK MANE
ABHISHEK MANE - avatar
13th Jan 2022, 10:04 AM
Jayakrishna 🇮🇳