Guest User

Untitled

a guest
Jun 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package testes;
  6.  
  7.  
  8. public class urls {
  9.    
  10.     private String proto;
  11.     private String domain;
  12.  
  13.     public urls(String proto, String domain) {
  14.         this.proto = proto;
  15.         this.domain = domain;
  16.     }
  17.  
  18.     public String getDomain() {
  19.         return domain;
  20.     }
  21.  
  22.     public void setDomain(String domain) {
  23.         this.domain = domain;
  24.     }
  25.  
  26.     public String getProto() {
  27.         return proto;
  28.     }
  29.  
  30.     public void setProto(String proto) {
  31.         this.proto = proto;
  32.     }
  33.    
  34.     public String getUrl(){
  35.         String url = this.proto+this.domain;
  36.         return url;
  37.     }
  38. }
Add Comment
Please, Sign In to add comment