Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Primeiramente o Java

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Primeiramente o Java

Primeiramente o Java

Avatar for targettrust

targettrust

July 09, 2014

Other Decks in Education

Transcript

  1. JAVA | Documentação API   h"p://java.sun.com/javase/6/docs/api/        

    Tutoriais   h"p://java.sun.com/docs/books/tutorial/java/TOC.html  
  2. Variaveis| Nomenclaturas • Comece  com  letras,  $  ou  _    

    • Os  caracteres  subsequentes  também  podem  ser  números     • Caso  sensível     • Sem  espaços   nome   sobreNome   dataNascimento    
  3. Variaveis| Palavras Reservadas abstract   conFnue   for   new

      switch   assert   default   goto   package   synchronized   boolean   do   if   private   this   break   double   implements   protected   throw   byte   else   import   public   throws   case   enum   instanceof   return   transient   catch   extends   int   short   try   char   final   interface   staFc   void   class   finally   long   stricNp   volaFle   const   float   naFve   super   while   h"p://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html  
  4. Variaveis| Tipos Primitivos byte   short   int   long

      float   double   boolean   char  
  5. Controle de Fluxo | Declarações if-else if  (boolean)  {  

         /  /  Executar  este  código     }  else  {   /  /  Caso  contrário,  execute  este     }  
  6. Controle de Fluxo | Switch switch  (variavel)  {    case

     1:  //código      break;   case  2:  //  código    break;   default:  //  código   }  
  7. Controle de Fluxo | Loop com for for  (inic.;  term.;

     update)  {    //  código   }