Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. class MusicStore {
  2. String owner = "No owner";
  3. public void displayHoursOfOperation() {
  4. System.out.println("Store Hours: Daily: 9:00 AM - 21:00 PM");
  5. }
  6.  
  7. String setOwner(String name) {
  8. owner = name;
  9. return name;
  10. }
  11. }
  12.  
  13.  
  14. public class TestMusicStore {
  15. public static void main(String[] args) {
  16. MusicStore ob = new MusicStore();
  17.  
  18. ob.displayHoursOfOperation();
  19.  
  20. System.out.println(ob.setOwner("Roberto Baggio, Proprietor"));
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement