package ru.helloworld; public class helloworld { } public static void main (String[] args) { System.out.println("helloworld") } 

There is an error:

Error: (7, 15) java: class, interface, or enum expected.

What to do? enter image description here

Closed due to the fact that off-topic participants 0xdb , AK , Enikeyschik , aleksandr barakin , Komdosh Jan 14 at 10:58 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - AK, Enikeyschik, aleksandr barakin, Komdosh
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    "What to do?" - eliminate the error, it's obvious. And what have you done? - 0xdb 3:19 pm
  • For whom in the code are some places underlined in red? - Enikeyschik

1 answer 1

 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } }