├── LICENSE ├── README.md ├── Standard-java └── HelloWorld │ ├── README.md │ └── helloworld.java └── readme-img └── java-logo-3.png /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Peharge 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 |
5 |
6 | 7 | Learn Java 8 | Peharge 9 |
10 |
11 | 12 | java 13 | Clion 14 |
15 |
16 | 17 | os 18 |
19 |
20 | 21 | [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) 22 |
23 | 24 |
25 | 26 | # _Learn Java_ 27 | 28 | > All you need is Java and you can read that here. 29 | 30 | This repository contains a collection of Java code samples on various topics. Here you will find examples of basic to advanced Java concepts. 31 | 32 | ### Installation 33 | 34 | 1. **Clone repository**
35 | Clone the repository to a local directory: 36 | ```bash 37 | git clone https://github.com/Peharge/learn-java 38 | ``` 39 | 2. **Change directory**
40 | Navigate to the project directory: 41 | ```bash 42 | cd learn-java 43 | ``` 44 | 45 | 3. **Have fun** -------------------------------------------------------------------------------- /Standard-java/HelloWorld/README.md: -------------------------------------------------------------------------------- 1 | Run Hello World 2 | 3 | ```bach 4 | javac helloworld.java 5 | ``` 6 | 7 | ```bach 8 | java helloworld 9 | ``` -------------------------------------------------------------------------------- /Standard-java/HelloWorld/helloworld.java: -------------------------------------------------------------------------------- 1 | public class HelloWorld { 2 | public static void main(String[] args) { 3 | System.out.println("Hello, World!"); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /readme-img/java-logo-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Peharge/learn-java/9f76a89ac0febedabc8bcbe7537a5e8847185f8f/readme-img/java-logo-3.png --------------------------------------------------------------------------------