rochitac

domain User

Feb 5th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. /**
  2. * This program uses the domain class.
  3. *
  4. * @author (Rochita Chatterjee)
  5. * @version (Version1 2/5/17)
  6. */
  7. public class domainUser
  8. {
  9. public static void main (String [] args)
  10. {
  11. domain website = new domain (); // calling the domain class
  12.  
  13. website.setSiteName("www.web.com"); /// setting name of website
  14.  
  15. System.out.println( website.getSiteName()); //retriving value from domain class
  16. }
  17. }
Add Comment
Please, Sign In to add comment