• Post Reply Bookmark Topic Watch Topic
  • New Topic

the same class names in a package  RSS feed

 
frantisek nejedly
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, please could you advise me on the following?

I am learning and I've started to write program examples and then their variations.

Because of names conflict, for the time being, I do this:
either
I keep each program variation in a different package - which is very inconvenient
or
I rename classes in each program variation - which is very inconvenient as well

Is there any better way?

Thank you.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find a version control program eg "Subversion" and you can use that to store old versions of the application. I don't know how to use it, I am afraid.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Subversion (also known as SVN) and CVS are popular free solutions. Microsoft SourceSafe is a often-used commercial solution.

I haven't used either before properly, but I've come across VisualSVN Server and TortoiseSVN, both free. The former is the server part, the latter is a client shell integration. You can then right-click on folders in explorer and choose several SVN options for it, like checkout.
 
frantisek nejedly
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob and Ritchie(is this your first name?).

As I use Eclipse I will try Subclipse.

Thanks a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!