Console error when typed new code

I am writing a new code in the java program but the output in console is showing only printed hello world

make sure the class you want to run is called Main for replit to run it

Thanks for your reply but what if i need the class name different like BMICALCULATOR

in the files sidebar/tab, click on the three dots in top right > show hidden files. Change Main in the .replit file to BMICALCULATOR (although to follow conventions BMICalculator would be a better name)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.