0

I have this problem in eclipse:

eclipse

I don't know why it kee[s telling me that its not accessible.

I tried to find a solution onlines and tried a couple but couldn't work it.

mouhamad
  • 23
  • 2
  • Have you tried adding `junit` library to your Eclipse project? [The import org.junit cannot be resolved](https://stackoverflow.com/questions/15105556/the-import-org-junit-cannot-be-resolved/36763917) – chickity china chinese chicken Nov 22 '21 at 19:45
  • Please take the [tour] and have a read through [ask]. And please do not post screenshots of text, but do post the text itself. – SiKing Nov 22 '21 at 19:53

1 Answers1

0

Your line 2

import static org.juni

Is 1) incorrect, and 2) not terminated with a ; (semicolon). So the compiler assumes your line 4 is a continuation of this broken one, which is still an error.

In all likelihood, you want your line 2 to be:

import static org.junit.Assert.*; 
SiKing
  • 9,451
  • 10
  • 37
  • 81