Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package testes;
- public class urls {
- private String proto;
- private String domain;
- public urls(String proto, String domain) {
- this.proto = proto;
- this.domain = domain;
- }
- public String getDomain() {
- return domain;
- }
- public void setDomain(String domain) {
- this.domain = domain;
- }
- public String getProto() {
- return proto;
- }
- public void setProto(String proto) {
- this.proto = proto;
- }
- public String getUrl(){
- String url = this.proto+this.domain;
- return url;
- }
- }
Add Comment
Please, Sign In to add comment