MCPcopy Create free account
hub / github.com/JerePrograma/FullStackEgg / Cadena

Class Cadena

Etapa2Utilidades/Ejercicio1/src/entidad/Cadena.java:3–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package entidad;
2
3public class Cadena {
4
5 private String frase;
6 private int longitudFrase;
7
8 public Cadena() {
9 }
10
11 public Cadena(String frase) {
12 this.frase = frase;
13 this.longitudFrase = frase.length();
14 }
15
16 public String getFrase() {
17 return frase;
18 }
19
20 public void setFrase(String frase) {
21 this.frase = frase;
22 }
23
24 public int getLongitudFrase() {
25 return longitudFrase;
26 }
27
28 public void setLongitudFrase(int longitudFrase) {
29 this.longitudFrase = longitudFrase;
30 }
31
32 @Override
33 public String toString() {
34 return "cadena1{" + "frase=" + frase + ", longitudFrase=" + longitudFrase + '}';
35 }
36
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected