You should not reuse the name Connectionfor your own class. When you declare type objects Connection, you are not using SQL code, you are using your own.
, con, tanksgrid.Connection, java.sql.Connection. . con.createStatement(), Connection, , .
EDIT:
- : SQLException, , createStatement(). (, .) Eclipse .