Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package rfop.q1;
- public class Pessoa {
- class arrayPessoa{
- private String[] Nome;
- private String[] MotivList;
- private String[] CausmMort;
- private int[] cpf;
- public arrayPessoa(){ // Pessoa/Construtor
- this.Nome = new String[5];
- this.MotivList = new String[5];
- this.CausmMort = new String[5];
- this.cpf = new int[5];
- }
- public String toString(){ // pecorre as posições de Nome e retorna
- // o que está lá
- String resp = "";
- for(int i=0; i<Nome.length; i++){
- resp = resp + Nome[i] + "";
- }
- return resp;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement