Question: When I finish my source code and run it in #1, the error comes up with a sign says put .java in the line 12.
When I finish my source code and run it in #1, the error comes up with a sign says "put .java" in the line 12.
And after I put it, as you can see in #2, the { mark requires in line 12 again.
Why is this happening? And how can I solve the issue?

- Creator File Edit View Pret Bilfun Tale Run Tools Configure Window Hep 7146.313--0 criyava x x File View Werkspasty Pyet city @city.JAVA city aplica Author Qysia00 2022/1/20 import java.u11.Donner public c18.55 StringManupulator! public static void maan(Stringl sa) Scanner so - Dex Scanner System.in) # System.out.print("Enter your city none") Sering - - Re.nex 1.11): System.out.println(" Wher of charactPTX 1n etsy : *+city.length(); Seten.Out.println("City name in upper cage : city.coDypercese(): System.out.println("City name in lover care: -ctsy.coloverCase(); 9,2 cm.out.println("?izat character in the base of city : Icity.cheza (): Twelve Build Report Message Resource city error dass String Manipulator is public should be declared in a file named StringManupulator.java Folder Location CUsersiscoseOnce Documents Creator LE\MyProjects city si line 12 General Output Buid Cutput ask View For Hdpress F1 La Coll Chart HOLOOC OVR Read CAP NUM 725 PM D 1/20/2022 ENG 0 Bilfun Tak Run Tools Configure Window Hep C-JCreator File Edit View Pmat BBQ File View Werkspasty Pyet city | mily:,*-*- " criyava x x @city.JAVA city aplica Author Qysia00 2022/1/20 import java.u11.Donner public class StringManupulator Java public static void maan(Stringl sa) Scanner ac - Dex Scanner(System.in) Systen.out.print("Enter your city name : "); (" Sering - - Re.nex 1.11): System.out.println(" Wher of charactPTX 1n etsy : *+city.length(); Seten.Out.println("City name in upper cage : city.coDypercese(): System.out.println("City name in lover care: -ctsy.coloverCase(); 9,2 cm.out.println("?izat character in the base of city : Icity.cheza (): #2 Twelve Build Report Message Resource CRY error expected Folder Location CUsersiscoseOnce Documents Creator LE\MyProjects city si line 12 General Output Buid Cutput ask View For Hdpress F1 La Coll Chart HOLOOC OVR Read CAP NUM 725 PM D 1/20/2022 ENG 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
