Advertisement
GazingHawk

µ

Feb 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. @override
  2. toString()
  3. Class arrayList
  4. for each //for (Aluno a : alunos)
  5. try { } catch {
  6. String.trim()
  7.  
  8. /*
  9. public class Aluno {
  10.    
  11.     private int num;
  12.     private String nome;
  13.    
  14.     public Aluno(int num, int nome) {
  15.         this.num = num;
  16.         this.nome = nome;
  17.     }  
  18.    
  19.     public int getNum() {
  20.         return num;
  21.     }  
  22.    
  23.     public String getNome() {
  24.         return nome;
  25.     }
  26.    
  27.     @override
  28.     public String toString() {
  29.         return num + ": " + nome;
  30.     }
  31. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement