See examples that illustrate the main causes of the 'illegal start of expression' error and how to fix it.
![]() ![]()
just illegal expression in import java.io.console; and public classs Introduction {
Hi there! Take a look at the very first comment of the code:
You cannot import it because it's already been imported. These challenges are a little special and require that you do exactly what they say and nothing more. The challenge does not ask you to define a class nor make the
main method.
Step 1 should only require one line of code, which you have:
Try not to do anything the challenge doesn't explicitly ask for. Even if functional outside the challenge, it can cause the challenge to fail.
Hope this helps!
![]()
Posting to the forum is only allowed for members with active accounts. Please sign in or sign up to post. ![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |