├── tipos-variaveis ├── README.md ├── .vscode │ └── settings.json ├── .gitignore └── src │ └── TiposVariaveis.java ├── JAVA_TERMINAL ├── bin │ └── MinhaClasse.class ├── src │ └── MinhaClasse.java ├── .vscode │ └── settings.json └── README.md └── sistema-smart-tv ├── bin ├── SmartTv.class └── Usuario.class ├── .vscode └── settings.json ├── src ├── Usuario.java └── SmartTv.java └── README.md /tipos-variaveis/README.md: -------------------------------------------------------------------------------- 1 | # Estudos-java -------------------------------------------------------------------------------- /JAVA_TERMINAL/bin/MinhaClasse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WMatheus2022/Estudos-java/HEAD/JAVA_TERMINAL/bin/MinhaClasse.class -------------------------------------------------------------------------------- /sistema-smart-tv/bin/SmartTv.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WMatheus2022/Estudos-java/HEAD/sistema-smart-tv/bin/SmartTv.class -------------------------------------------------------------------------------- /sistema-smart-tv/bin/Usuario.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WMatheus2022/Estudos-java/HEAD/sistema-smart-tv/bin/Usuario.class -------------------------------------------------------------------------------- /JAVA_TERMINAL/src/MinhaClasse.java: -------------------------------------------------------------------------------- 1 | public class MinhaClasse { 2 | 3 | public static void main(String[] args) { 4 | System.out.print("OI, fui executado pelo terminal!."); 5 | } 6 | } -------------------------------------------------------------------------------- /JAVA_TERMINAL/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.project.sourcePaths": ["src"], 3 | "java.project.outputPath": "bin", 4 | "java.project.referencedLibraries": [ 5 | "lib/**/*.jar" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /sistema-smart-tv/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.project.sourcePaths": ["src"], 3 | "java.project.outputPath": "bin", 4 | "java.project.referencedLibraries": [ 5 | "lib/**/*.jar" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /tipos-variaveis/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.project.sourcePaths": ["src"], 3 | "java.project.outputPath": "bin", 4 | "java.project.referencedLibraries": [ 5 | "lib/**/*.jar" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /tipos-variaveis/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | /settings.json 25 | -------------------------------------------------------------------------------- /tipos-variaveis/src/TiposVariaveis.java: -------------------------------------------------------------------------------- 1 | public class TiposVariaveis { 2 | public static void main(String[] args) throws Exception { 3 | 4 | double salarioMinimo = 2500; 5 | 6 | short numeroCurto = 1; 7 | 8 | int numeroNormal = numeroCurto; 9 | 10 | short numeroCurto2 = (short) numeroNormal; 11 | 12 | int numero = 5; 13 | 14 | numero = 10; 15 | 16 | System.out.println(numero); 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /sistema-smart-tv/src/Usuario.java: -------------------------------------------------------------------------------- 1 | public class Usuario { 2 | public static void main(String[] args) throws Exception { 3 | SmartTv smartTv = new SmartTv(); 4 | 5 | smartTv.diminuirVolume(); 6 | smartTv.diminuirVolume(); 7 | smartTv.diminuirVolume(); 8 | smartTv.aumetarVolume(); 9 | smartTv.mudarCanal(13); 10 | System.out.println("Volume atual: " +smartTv.volume); 11 | 12 | System.out.println("Tv ligado? " + smartTv.ligado); 13 | System.out.println("Canal atual: " +smartTv.canal); 14 | System.out.println("Volume atual: " +smartTv.volume); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /sistema-smart-tv/src/SmartTv.java: -------------------------------------------------------------------------------- 1 | public class SmartTv { 2 | 3 | Boolean ligado = false; 4 | int canal=1; 5 | int volume=25; 6 | 7 | public void mudarCanal(int novoCanal) { 8 | canal = novoCanal; 9 | } 10 | 11 | public void aumentarCanal() { 12 | canal++; 13 | 14 | } 15 | public void diminuirCanal() { 16 | canal--; 17 | } 18 | 19 | public void aumetarVolume() { 20 | volume++; 21 | } 22 | public void diminuirVolume() { 23 | volume--; 24 | } 25 | 26 | public void ligar() { 27 | ligado = true; 28 | } 29 | 30 | public void Desligado() { 31 | ligado = false; 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /JAVA_TERMINAL/README.md: -------------------------------------------------------------------------------- 1 | ## Getting Started 2 | 3 | Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. 4 | 5 | ## Folder Structure 6 | 7 | The workspace contains two folders by default, where: 8 | 9 | - `src`: the folder to maintain sources 10 | - `lib`: the folder to maintain dependencies 11 | 12 | Meanwhile, the compiled output files will be generated in the `bin` folder by default. 13 | 14 | > If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. 15 | 16 | ## Dependency Management 17 | 18 | The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). 19 | -------------------------------------------------------------------------------- /sistema-smart-tv/README.md: -------------------------------------------------------------------------------- 1 | ## Getting Started 2 | 3 | Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. 4 | 5 | ## Folder Structure 6 | 7 | The workspace contains two folders by default, where: 8 | 9 | - `src`: the folder to maintain sources 10 | - `lib`: the folder to maintain dependencies 11 | 12 | Meanwhile, the compiled output files will be generated in the `bin` folder by default. 13 | 14 | > If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. 15 | 16 | ## Dependency Management 17 | 18 | The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). 19 | --------------------------------------------------------------------------------