Advertisement
gastaojunior

Classe Aluno

Oct 17th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5.  
  6. /**
  7.  *
  8.  * @author univag
  9.  */
  10.  
  11.  
  12. public class aluno {
  13.  
  14.     String nome;
  15.     String cpf;
  16.     String telefone;
  17.     Double n1;
  18.     Double n2;
  19.     Double n3;
  20.     Double n4;
  21.  
  22.     Double media() {
  23.         Double n = (n1 + n2 + n3 + n4) / 4.0;
  24.         return n;
  25.     }
  26.  
  27. }
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement