That is, in fact, decided to learn the Java language. To do this, he began to study the "Java Philosophy" of B.Eckel, but got stuck on the very first program.

import java util.*; public class HelloDate { public static void main (String[] args){ System.out.println("Hello. Today is "); System.out.println(new Date()); } } 

I try to compile in eclipse, but it gives an error in the first line. As I understand it, this is related to the JRE libraries. Actually, could you tell me what the problem is and how to solve it?

alt text

  • I hope Ekkelyav you are reading in the original (recently decided to finally look at the translation, I thought something improved in the last edition) Although everything is fine in the code, it remains most likely to look at what’s up with the upd project to see what your error is (eclipse should show ) - rasmisha
  • No, I just read the translated version, 4th edition. - Omfis

1 answer 1

You just missed the point in the first line.

 import java.util.*; ^ | 

Good luck learning Java!