Advertisement
cesarnascimento

vetor exemplo basico 3 double numeros reais

May 15th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. package vetor;
  2.  
  3. public class vetor {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         double v[] = {3.5, 2.75, 9, -4.5};
  8.         for (double valor : v){
  9.             System.out.print(valor+ " ");
  10.         }
  11.        
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement