Import classes in onlinegdb

0 votes
asked 6 days ago by (120 points)
I started a new java project with multiple files. For example, class A with the file name A. If I go to the file and do import A;, it throws error "." and ";" expected at end of the import line.

1 Answer

0 votes
answered 5 days ago by (2,870 points)
You probably just need to include file extension in it's name, that way it always worked for me.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.