📆 Artigo escrito dia: 03/09/2020 📆 Artigo atualizado dia: 10/10/2020
Minhas especificações: Microsoft Windows 10 Enterprise Versão 2004 (Compilação 19041.450). WSL2 - Ubuntu 20.04.
| import java.util.HashMap; | |
| import java.util.Map; | |
| class Cart { | |
| Map<Product, Integer> productsInCart = new HashMap<>(); | |
| public void addProductsInCart(Product product, Integer quantity) { | |
| productsInCart.put(product, quantity); | |
| } |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| public class Question1 { | |
| public static void main(String[] args) throws IOException { | |
| BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); | |
| String age; | |
| System.out.println("**********\tSistema Verificador da Idade do Eleitor\t**********"); |
| public enum ExpendMonths { | |
| JANUARY_EXPENSE (Math.random() * 10000, "January"), | |
| FEBRUARY_EXPENSE (Math.random() * 10000, "February"), | |
| MARCH_EXPENSE (Math.random() * 10000, "March"), | |
| APRIL_EXPENSE (Math.random() * 10000, "April"), | |
| MAY_EXPENSE (Math.random() * 10000, "May"), | |
| JUNE_EXPENSE (Math.random() * 10000, "June"), | |
| JULY_EXPENSE (Math.random() * 10000, "July"), | |
| AUGUST_EXPENSE (Math.random() * 10000, "August"), | |
| SEPTEMBER_EXPENSE (Math.random() * 10000, "September"), |
| $ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into 'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could not read from remote repository. | |
| $ # This should also timeout | |
| $ ssh -T [email protected] | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $ # but this might work |
Vamos configurar nosso ambiente de desenvolvimento, instalando ferramentas básicas para iniciarmos no mundo da programação.
Chocolatey é um gerenciador de programas e nos ajudará a instalar os programas de maneira programática, pelo terminal do Windows.