The class name in the code executor.I don't know why the java error appears.

Asked 2 years ago, Updated 2 years ago, 30 views

Public class course object {

 // Member variable
  String Subject Name;//Completed
  String subject code;
  String Subject Classification;//Completed
  String Score;//Completed
  String purpose of lecture;
  String Learning Objectives;
  String Lecture Text;
  String Faculty;//Completed

We did the chords like this Both in Eclipse and cmd windows were source code that ran without errors. However, in the code executor, when you press "

"

Command failed: /undefined.java:1: error: class subject is public, should be defined in a file named course object.java public class course object { ^ 1 error

There is an error like this, but I heard that you don't have to make a separate class file in the code executor I wonder why this error occurs.

java

2022-09-22 21:52

1 Answers

An error occurred because the class name and variable name were Korean. (Bugs in Code Executor) I extracted the file name from the class name, created the file, and compiled it, but the file name was not extracted properly.


2022-09-22 21:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.