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 Variaveis { | |
public static void main(String[] args) throws Exception { | |
//exemplos de tipos de variáveis | |
byte v1 = 30; | |
short v2 = 60; | |
int v3 = 50; | |
long v4 = 6254358487L; | |
float f1 = 54.84f; | |
double d1 = 54.43; |
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
#!/usr/bin/env bash | |
while true; do | |
clear | |
echo '================================================ | |
Mini script Git do site | |
1)Status dos arquivos | |
2)Adicionar todos os arquivos modificados |
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
|
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
package com.jocile.example.colletions; | |
/** | |
* This is a domain class that implements Comparable by defining an ordering rule. | |
* For an outer class it is indicated to implement Comparator. | |
* | |
* @see ComparableExampleList implements this example list | |
*/ | |
public class ComparableExample implements Comparable<ComparableExample> { | |
private final String name; |
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
package com.jocile.example.compare; | |
/** | |
* examples of logical operators | |
*/ | |
public class LogicCompareExamples { | |
public static void main(String[] args) { | |
compareInt(10, 20); | |
compareFloat(14.5f, 3.5f); |
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
package com.jocile.example.io; | |
import java.io.Serializable; | |
/** | |
* This class is used in the object serialization example. | |
* | |
* @see ObjectIoExample | |
*/ | |
public class Cat implements Serializable { |
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
package com.jocile.example.linkedlist; | |
/** | |
* Dynamically doubly linked list | |
*/ | |
public class LinkedListDoublyExemple<T> { | |
private NodeD<T> primeiroNo; | |
private NodeD<T> ultimoNo; | |
private int tamanhoLista = 0; |
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
import java.io.IOException; | |
import java.util.Scanner; | |
/** | |
* Ramsay: "(...) você vence se conseguir adivinhar quem eu sou e por que estou torturando você." | |
Theon deve pensar rápido e adivinhar quem é seu algoz! Entretanto, Ramsay já decidiu o que ele irá fazer depois que Theon der sua resposta. | |
Theon pode dizer que seu algoz é alguma dentre N pessoas. Considere que as pessoas são numeradas de 1 a N. Se Theon responder que seu algoz é a pessoa i, Ramsay irá atingi-lo Ti vezes. |
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
<?php | |
/** Carrega automaticamente uma classe quando instanciada | |
* @package bibliotecaphp | |
* @method __autoload | |
* @version 2 | |
* @pattern MVC Controller | |
* @author PHP POO | |
* @param string $classe | |
* @date - 21/02/2012 |
OlderNewer