This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ordenacaoBubble { | |
public static void main(String[] args) { | |
/* | |
*Algoritmo de Ordenacao Bubble Sort | |
*/ | |
int vetor[] = {3, 9, 5, 2, 10, 1, 4, 7, 6, 8}; | |
int aux; | |
boolean controle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class eraUnix { | |
public static void main(String[] args) { | |
long totalMilisegundos = System.currentTimeMillis(); | |
//*****************Segundos atual***************** | |
long totalSegundos = totalMilisegundos / 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void vida() { | |
gl.glPushMatrix(); | |
gl.glColor3f(1, 0, 0); | |
gl.glTranslatef(2.5f, 0.0f, 0.0f); | |
glut.glutSolidSphere(4, 10, 10); | |
gl.glPopMatrix(); | |
gl.glPushMatrix(); | |
gl.glTranslatef(-2.5f, 0.0f, 0.0f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar aps_compiladores_c_rec; | |
/* | |
Executar | |
antlr4 Aps.g4 | |
javac Aps*.java | |
grun Aps prog -gui input.txt | |
*/ | |
/* |