Since the code is identified as a "fragment", it's impossible to say just what's wrong with it - it depends on how it's used. If the fragment is used inside a class declaration, then the first line is illegal - imports cannot be inside classes. The third line is also illegal unless it's inside a method or static initializer. If it's outside a class, then the second and third lines are illegal.
"I'm not back." - Bill Harding, Twister
subject: which part is wrong in this following fragment