View Single Post
Join Date: Dec 2004
Posts: 4,120
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 471
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Postal code program, need help to get in right direction

 
0
  #2
Nov 29th, 2008
  1. public class PostalZipCode
  2. {
  3. private String barCode;
  4.  
  5. public PostalZipCode(String zipCode)
  6. {
  7. determinateBarCode(zipCode);
  8. }
  9.  
  10. private void determinateBarCode(String zipCode)
  11. {
  12. //do what ever calculation you need to generate barCode
  13. setBarCode(GENERATED_STRING_FOR_BARCODE_HERE);
  14. }
  15.  
  16. private void setBarCode(String str)
  17. {
  18. barCode = str;
  19. }
  20.  
  21. public void getBarCode()
  22. {
  23. return barCode;
  24. }
  25. }

PS: Please use code tags in the future to post any size of code [code]YOUR CODE HERE[/code]
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote