Question: I am using IntelliJ to code the Hello World in Java. I tried to fix the error. What gives!?!? I will give a thumbs up
Projed T Programming Exercise 1.java X public class HelloWorld Java Projects Out production Project Java Projects Users\david Java Projects 1.idea out production src Programming Exercise 1.java Java. Projects.imi tilh External Libraries "Scratches and Consoles public static void main(String[] args) { System.out.print("Hello, World"); System.out.println(); Messages: Buildx * 2 Favorites Information java: Errors occurred while compiling module 'Java Projects Information Javac 13.0.1 was used to compile java sources Information: 2/1/2021 1:19 PM - Build completed with 1 error and warnings in 2 s 142 ms C:\Users\david Vava Projects\src\Programming Exercise 1.java Error:(1,8) java: class HelloWorld is public, should be declared in a file named HelloWorld.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
