Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the Import statement refer to same class name in different package

 
Sudheer Kolanu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have two classes with same name in different packages. I am referring to one of those in my classes but I need to change the import to other one. Is there a quick way to change the import statements in all my classes other than changing manually.

--
Thanks,
Sudhi.
 
Dhaval J. Patel
Ranch Hand
Posts: 90
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not unless you are using an IDE. You can do a search and replace.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic