full_name
stringlengths
7
104
description
stringlengths
4
725
topics
stringlengths
3
468
readme
stringlengths
13
565k
label
int64
0
1
minty-codes/TutorialClient1.8.8
The source code of a client being created in a tutorial by MintyCodes.
null
# TutorialClient1.8.8 The source code of a client being created in a tutorial by MintyCodes.<br> [![Episode #1](http://mintyplays.com/mintycodes/thumbnail1.png)](https://www.youtube.com/watch?v=OOrVK6s1wrM)<br> [![Episode #2](http://mintyplays.com/mintycodes/thumbnail2.png)](https://www.youtube.com/watch?v=RPWnwrbIRzw)<br> [![Episode #3](http://mintyplays.com/mintycodes/thumbnail3.png)](https://www.youtube.com/watch?v=ZwT7ax4X3lo)<br> [![Episode #4](http://mintyplays.com/mintycodes/thumbnail4.png)](https://www.youtube.com/watch?v=N4doza1_XLo)<br> [![Episode #5](http://mintyplays.com/mintycodes/thumbnail5.png)](https://www.youtube.com/watch?v=lhEzBWNP3hE)<br> [![Episode #6](http://mintyplays.com/mintycodes/thumbnail6.png)](https://www.youtube.com/watch?v=6VKopTfCu-w)<br> [![Episode #7](http://mintyplays.com/mintycodes/thumbnail7.png)](https://www.youtube.com/watch?v=vopCc0EZLFU)
1
McJty/YouTubeModding14
Source code for my YouTube modding tutorial series for Minecraft 1.15 and 1.16
null
null
1
redhat-developer-demos/eda-tutorial
Event-Driven Tutorial for Distributed Data with CQRS and Event Sourcing
cqrs distributed-data-management event-driven event-sourcing kafka microservices
null
1
Jaryt/FlappyBirdTutorial
The source code for the flappy bird tutorial video on http://www.youtube.com/iJaryt23
null
null
1
SaiUpadhyayula/spring-boot-testing-reddit-clone
This repository contains source code for the Spring Boot Testing Tutorial Series
null
# Spring Boot Testing Tutorial Series This repository contains source code for the Spring Boot Testing Tutorial Series # spring-reddit-clone Reddit clone built using Spring Boot, Spring Security with JPA Authentication, Spring Data JPA with MySQL, Spring MVC. The frontend is built using Angular - You can find the frontend source code here - https://github.com/SaiUpadhyayula/angular-reddit-clone # Tutorial https://programmingtechie.com/2019/09/30/build-a-full-stack-reddit-clone-with-spring-boot-and-angular-part-1/ # Front end code https://github.com/SaiUpadhyayula/angular-reddit-clone # Screenshots 1. Home Page ![Home Page](https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/resources/images/reddit-screenshot-updated.PNG) 2. View Post Page ![View Post Page](https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/resources/images/reddit-screenshot-updated.PNG) 3. Create Post Page ![Create Post Page](https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/resources/images/create-post.PNG) 4. Create Subreddit Page ![Create Subreddit Page](https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/resources/images/create-subreddit.PNG) 5. User Profile Page ![User Profile Page](https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/resources/images/user-profile.PNG)
1
thobe/social-network-workshop
A tutorial for creating a social network system based on Neo4j
null
null
1
toedter/e4-tutorial
These are the reference projects for my Eclipse 4 Application Platform tutorial.
null
e4-tutorial [![Build Status](https://travis-ci.org/toedter/e4-tutorial.svg?branch=master)](https://travis-ci.org/toedter/e4-tutorial) =========== These are the reference projects for my Eclipse 4 Application Platform tutorial. Tycho Build ----------- * Have Maven 3 installed * Clone this Git repo * Open a shell in project org.eclipse.e4.tutorial.contacts.build.tycho * Run command "mvn clean install" * Wait a while (first build takes long) until the build succeeds * The results for Win (32/64) and Linux GTK (32/64) and Mac Cocoa (32/64) are in project org.eclipse.e4.tutorial.contacts.product/target/products e4 Application Model Extension ------------------------------ * In the project org.eclipse.e4.tutorial.contacts.model.application you find a small extension to the Eclipse 4 application model * This extension is used in the Application-with-extension.xmi file of project org.eclipse.e4.tutorial.contacts * To open the Application-with-extension.xmi in your running Eclipse IDE (in model editors), you have to export the project org.eclipse.e4.tutorial.contacts.model.application in to your running IDE. * To export, open MANIFEST.MF, in the Overview-Tab click on "Export Wizard" and then choose "Install into host. Repository:" * Restart your Eclipse SDK, now you should be able to open Application.e4xmi * If you don't want to install the model extension into your running Eclipse SDK, you could just start a new Eclipse SDK instance and make sure that the project org.eclipse.e4.tutorial.contacts.model.application is checked in the Run-Configuration. License ------- All Source Code Files are licensed under the Eclipse Public License - v 1.0 http://www.eclipse.org/legal/epl-v10.html
0
Basir-PD/React-Native-Carousel
Tutorial Link: https://www.youtube.com/watch?v=2TgArwz6je8
null
null
1
yhcheer/RayTracingInOneWeekend
RayTracing tutorial use Java&Cpp
graphics-engine raytracing raytracing-engine
# RayTracingInOneWeekend ## Introduce 《Ray tracing in one weekend》is a good book for ray tracing tutorial, and Peter Shirley implements a simple ray tracing engine by C++. This is my Ray Tracing Tutorial of **JAVA version**. 1. [RayTracingInOneWeekend](https://github.com/yhcheer/RayTracingInOneWeekend) 2. [RayTracingTheNextWeek](https://github.com/yhcheer/RayTracingTheNextWeek) 3. [RayTracingTheRestOfYourLife](https://github.com/yhcheer/RayTracingTheRestOfYourLife) The output of my projects is a PPM(P3) file. You can use ImageMagick to transfer into a JPG file, or you can use other Image Viewer software(eg: XnView) to open it. ```python #ppm2jpg import PythonMagick as PM img = PM.Image(r"C:\Users\yh\Documents\CG\result\Chapter6_20_39_01.ppm") img.write(r"C:\Users\yh\Documents\CG\result\Cp6.jpg") ``` ## All Images of Every Chapters are As follows: ### Chapter 12: Where next? ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp0.jpg) ### Chapter 11: Defocus Blur ![cp11](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp11.jpg) ### Chapter 10: Positionable camera ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp10.jpg) ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp10_2.jpg) ### Chapter 9: Dielectrics ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp9.jpg) ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp9_2.jpg) ### Chapter 8: Metal ![cp8](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp8.jpg) ### Chapter 7: Diffuse Materials ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp7.jpg) ### Chapter 6: Antialiasing ![Cp6](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp6.jpg) ### Chapter 5: Surface normals and multiple objects. ![cp5-1](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp5_1.jpg) ![](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp5_3.jpg) ### Chapter 4: Adding a sphere ![CP4](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp4.jpg) ### Chapter 3: Rays, a simple camera, and background ![Cp3](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp3.jpg) ### Chapter 2: The vec3 class ### Chapter 1:Output an image ![cp1](https://raw.githubusercontent.com/yhcheer/RayTracingInOneWeekend/master/image/Cp1.jpg)
1
Adobe-Marketing-Cloud/aem-guides
AEM Guides contains multiple AEM Maven projects that are code companions for a corresponding tutorial found on helpx.adobe.com
aem
# AEM Guides AEM Guides contains multiple AEM Maven projects that are code companions for a corresponding tutorial found on [helpx.adobe.com](https://helpx.adobe.com/support/experience-manager.html) ## Current Guides ### [SPA Editor HelloWorld Guide](https://github.com/Adobe-Marketing-Cloud/aem-guides/tree/master/spa-helloworld-guide) Highlights the steps needed to map a SPA component to an AEM component to enable in-context editing by building a simple HelloWorld component. ### [Simple Search Guide](https://github.com/Adobe-Marketing-Cloud/aem-guides/tree/master/simple-search-guide) Site search implementation that features full-text, predicate filtering, pagination, and auto-complete functionality ### [Projects and Tasks Guide](https://github.com/Adobe-Marketing-Cloud/aem-guides/tree/master/projects-tasks-guide) Creates a custom Project Template and simple approval workflow that leverages Project Tasks ### [Asset Insights Guide](https://github.com/Adobe-Marketing-Cloud/aem-guides/tree/master/asset-insights-guide) Provides two examples of extending foundation and core Image components to add tags to support Asset Insights. ### [Deprecated] [WKND Sites Guide](https://github.com/Adobe-Marketing-Cloud/aem-guides/tree/master/wknd-sites-guide) * This project has moved to [aem-guides-wknd](https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd)
1
Tutorials-By-Kaupenjoe/Forge-Tutorial-1.20.X
Repository for my Forge 1.20.X Tutorial Series on YouTube. Playlist link below!
forge-mod minecraft-mod tutorial-code tutorial-project
# Forge-Tutorial-1.20.X
1
McJty/TutorialV3
Minecraft modding tutorial, currently for Minecraft/Forge 1.18.1
null
null
0
timerring/backend-tutorial
韩顺平Java零基础markdown整理(A detailed tutorial of java from 0 to 1)
backend basic-java docker java tutorial
# backend-tutorial > If you find it useful, welcome to star⭐, and you are also welcome to submit an issue for further discussion or PR proofreading. 自己整理总结的韩顺平Java零基础markdown笔记,对于其中的一些冗余部分做了精简,同时也补充了课程的部分内容,方便阅读与记忆。 如果觉得有用,欢迎star⭐,同时也欢迎提issue进一步讨论或pr校对。 ### Content #### Java基础部分(以下目录点击展开 Click to expand) <details> <summary>第2章 Java概述与基础知识</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#第2章-java概述与基础知识">第2章 Java概述与基础知识</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-历史">Java 历史</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java技术体系平台">Java技术体系平台</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-重要特点">Java 重要特点</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-虚拟机jvm">Java 虚拟机 JVM</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#jdkjre">JDK,JRE</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#jdk-基本介绍">JDK 基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#jre-基本介绍">JRE 基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#jdkjre-和jvm-的包含关系">JDK、JRE 和JVM 的包含关系</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-快速入门">Java 快速入门</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#注意细节">注意细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-转义字符">Java 转义字符</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-常用的转义字符">Java 常用的转义字符</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#注释comment">注释(comment)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-中的注释类型">Java 中的注释类型</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#关于文档注释">关于文档注释</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#javadoc-常见标签">javadoc 常见标签</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-代码规范">Java 代码规范</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#dos-命令">DOS 命令</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#dos-介绍">DOS 介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#常用的dos-命令">常用的dos 命令</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#环境变量path配置及其作用">环境变量path配置及其作用</a></li> </ul></li> </ul></details> <details> <summary>第3章 变量</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#第3章-变量">第3章 变量</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#程序中号的使用">程序中+号的使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#数据类型">数据类型</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#整数类型">整数类型</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#整型的类型">整型的类型</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#整型的使用细节intdetailjava">整型的使用细节IntDetail.java</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#浮点类型">浮点类型</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#浮点型的分类">浮点型的分类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#浮点型使用细节floatdetailjava">浮点型使用细节FloatDetail.java</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#java-api-文档">Java API 文档</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#字符类型char">字符类型(char)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#字符类型使用细节">字符类型使用细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#字符本质探讨">字符本质探讨</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#布尔类型boolean">布尔类型:boolean</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#基本数据类型转换">基本数据类型转换</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#自动类型转换">自动类型转换</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#自动类型转换注意和细节">自动类型转换注意和细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#强制类型转换">强制类型转换</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#基本数据类型和string-类型的转换">基本数据类型和String 类型的转换</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#介绍和使用">介绍和使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#注意事项">注意事项</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第4章 运算符</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#第4章-运算符">第4章 运算符</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#运算符介绍">运算符介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#算术运算符">算术运算符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#关系运算符比较运算符">关系运算符(比较运算符)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#逻辑运算符">逻辑运算符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#赋值运算符">赋值运算符</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#赋值运算符的分类">赋值运算符的分类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#赋值运算符特点">赋值运算符特点</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#三元运算符">三元运算符</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#基本语法">基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#使用细节">使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#运算符优先级">运算符优先级</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#标识符的命名规则和规范">标识符的命名规则和规范</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#标识符命名规范">标识符命名规范</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#关键字">关键字</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#保留字">保留字</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#键盘输入语句">键盘输入语句</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#进制">进制</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#二进制转换成八进制">二进制转换成八进制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#二进制转换成十六进制">二进制转换成十六进制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#八进制转换成二进制">八进制转换成二进制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#十六进制转换成二进制">十六进制转换成二进制</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#原码反码补码">原码、反码、补码</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#位运算符">位运算符</a></li> </ul></li> </ul></details> <details> <summary>第5章 程序控制结构</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#第5章-程序控制结构">第5章 程序控制结构</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#程序流程控制介绍">程序流程控制介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#if-分支">if 分支</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#switch-分支结构">switch 分支结构</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#for-循环控制">for 循环控制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#while-循环控制">while 循环控制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#dowhile-循环控制">do..while 循环控制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#跳转控制语句-break">跳转控制语句-break</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#跳转控制语句-continue">跳转控制语句-continue</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#跳转控制语句-return">跳转控制语句-return</a></li> </ul></li> </ul></details> <details> <summary>第6章 数组、排序和查找</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#第6章-数组排序和查找">第6章 数组、排序和查找</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组介绍">数组介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组的使用">数组的使用</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#使用方式1-动态初始化数组的定义">使用方式1-动态初始化数组的定义</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#使用方式2-动态初始化">使用方式2-动态初始化</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#使用方式3-静态初始化">使用方式3-静态初始化</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组使用注意事项和细节">数组使用注意事项和细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组应用案例">数组应用案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组赋值机制">数组赋值机制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组拷贝">数组拷贝</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组添加扩容">数组添加/扩容</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#多维数组-二维数组">多维数组 二维数组</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#动态初始化1">动态初始化1</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#动态初始化2">动态初始化2</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#静态初始化">静态初始化</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#二维数组的应用案例">二维数组的应用案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#二维数组使用细节和注意事项">二维数组使用细节和注意事项</a></li> </ul></li> </ul></details> <details> <summary>第7章 面向对象编程(基础部分)</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#第7章-面向对象编程基础部分">第7章 面向对象编程(基础部分)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#类与对象">类与对象</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#类和对象的区别和联系">类和对象的区别和联系</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#对象在内存中存在形式">对象在内存中存在形式!</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#属性成员变量字段">属性/成员变量/字段</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#如何创建对象">如何创建对象</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#如何访问属性">如何访问属性</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法">成员方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#方法的调用机制原理">方法的调用机制原理!</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法的好处">成员方法的好处</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法的定义">成员方法的定义</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法传参机制">成员方法传参机制</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#引用数据类型的传参机制">引用数据类型的传参机制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法返回类型是引用类型应用实例">成员方法返回类型是引用类型应用实例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#方法递归调用">方法递归调用</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#方法递归调用-1">方法递归调用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#递归重要规则">递归重要规则</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#递归调用应用实例-汉诺塔">递归调用应用实例-汉诺塔</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#递归调用应用实例-八皇后问题">递归调用应用实例-八皇后问题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#方法重载overload">方法重载(OverLoad)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#重载的好处">重载的好处</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#注意事项和使用细节">注意事项和使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#可变参数">可变参数</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#基本概念">基本概念</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#基本语法">基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#注意事项和使用细节-1">注意事项和使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#作用域">作用域</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#基本使用">基本使用</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#构造方法构造器">构造方法/构造器</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#注意事项和使用细节-2">注意事项和使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#javap的使用">javap的使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#对象创建的流程分析">对象创建的流程分析</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#流程分析">流程分析!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#this-关键字">this 关键字</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#深入理解this">深入理解this</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#this-的注意事项和使用细节">this 的注意事项和使用细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#this-的案例">this 的案例</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第8章 面向对象编程(中级部分)</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#idea-常用快捷键">IDEA 常用快捷键</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#包">包</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#包的三大作用">包的三大作用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#包基本语法">包基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#包的本质分析">包的本质分析</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#包的命名">包的命名</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#常用的包">常用的包</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#如何引入包">如何引入包</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#注意事项和使用细节">注意事项和使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#访问修饰符">访问修饰符</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#访问修饰符的访问范围">访问修饰符的访问范围!</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#使用的注意事项">使用的注意事项</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#面向对象编程三大特征">面向对象编程三大特征</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#封装介绍">封装介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#封装的理解和好处">封装的理解和好处</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#封装的实现步骤三步">封装的实现步骤(三步)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#快速入门案例">快速入门案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#将构造器和setxxx-结合">将构造器和setXxx 结合</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#面向对象编程-继承">面向对象编程-继承</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#继承的基本语法">继承的基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#继承的深入讨论细节问题">继承的深入讨论/细节问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#继承的本质分析">继承的本质分析!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#super-关键字">super 关键字</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#基本介绍-2">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#基本语法">基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#super-给编程带来的便利细节">super 给编程带来的便利/细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#super-和this-的比较">super 和this 的比较</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#方法重写覆盖override">方法重写/覆盖(override)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#注意事项和使用细节-1">注意事项和使用细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#重写和重载比较">重写和重载比较!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#面向对象编程-多态">面向对象编程-多态</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多多种态状态基本介绍">多态基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态的具体体现">多态的具体体现</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#方法的多态">方法的多态</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#对象的多态">对象的多态!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态注意事项和细节讨论">多态注意事项和细节讨论</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态的向上转型">多态的向上转型</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态向下转型">多态向下转型</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#属性没有重写之说">属性没有重写之说</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#instanceof-比较操作符">instanceOf 比较操作符</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#java-的动态绑定机制">java 的动态绑定机制!!</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态的应用">多态的应用</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态数组">多态数组</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#多态参数">多态参数</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#object-类详解">Object 类详解</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#equals-方法">equals 方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#和equals-的对比">==和equals 的对比!!!!!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#如何重写-equals-方法">如何重写 equals 方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#hashcode-方法">hashCode 方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#总结">总结</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#tostring-方法">toString 方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#finalize-方法">finalize 方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#断点调试debug">断点调试(debug)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#断点调试介绍">断点调试介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#断点调试的快捷键">断点调试的快捷键</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#idea-debug进入-jdk源码">Idea debug进入 Jdk源码</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#项目-零钱通">项目-零钱通</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第9章 项目-房屋出租系统</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#第9章-项目-房屋出租系统">第9章 项目-房屋出租系统</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-需求">房屋出租系统-需求</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-界面">房屋出租系统-界面</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--主菜单">项目界面- 主菜单</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--新增房源">项目界面- 新增房源</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--查找房源">项目界面- 查找房源</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--删除房源">项目界面- 删除房源</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--修改房源">项目界面- 修改房源</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--房屋列表">项目界面- 房屋列表</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目界面--退出系统">项目界面- 退出系统</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-设计">房屋出租系统-设计(!!)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-实现">房屋出租系统-实现</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-完成house-类">项目功能实现-完成House 类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-显示主菜单和完成退出软件功能">项目功能实现-显示主菜单和完成退出软件功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-完成显示房屋列表的功能">项目功能实现-完成显示房屋列表的功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-添加房屋信息的功能">项目功能实现-添加房屋信息的功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-完成删除房屋信息的功能">项目功能实现-完成删除房屋信息的功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-完善退出确认功能">项目功能实现-完善退出确认功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-完成根据id查找房屋信息的功能">项目功能实现-完成根据id查找房屋信息的功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#项目功能实现-完成修改房屋信息的功能">项目功能实现-完成修改房屋信息的功能</a></li> </ul></li> </ul></li> </ul></details> #### Java高级部分(以下目录点击展开 Click to expand) <details> <summary>第10章 面向对象编程(高级部分)</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类变量和类方法">类变量和类方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类变量-提出问题">类变量-提出问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类变量内存布局">类变量内存布局</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#什么是类变量">什么是类变量</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#如何定义类变量">如何定义类变量</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#如何访问类变量">如何访问类变量</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类变量使用注意事项">类变量使用注意事项</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类方法基本介绍">类方法基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类方法的调用">类方法的调用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类方法经典的使用场景">类方法经典的使用场景</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类方法使用注意事项和细节讨论">类方法使用注意事项和细节讨论</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#理解main-方法语法">理解main 方法语法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#深入理解main-方法">深入理解main 方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#特别提示">特别提示</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#代码块">代码块</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本语法">基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#代码块的好处和案例演示">代码块的好处和案例演示</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#代码块使用注意事项和细节讨论">代码块使用注意事项和细节讨论!!!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#单例设计模式">单例设计模式</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#什么是设计模式">什么是设计模式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#什么是单例模式">什么是单例模式</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#饿汉式">饿汉式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#懒汉式">懒汉式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#比较">比较</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#final-关键字">final 关键字</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#final-使用注意事项和细节讨论">final 使用注意事项和细节讨论</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#抽象类">抽象类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#引出">引出</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#抽象类的介绍">抽象类的介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#抽象类使用的注意事项和细节讨论">抽象类使用的注意事项和细节讨论</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#抽象类最佳实践-模板设计模式">抽象类最佳实践-模板设计模式</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本介绍-2">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#模板设计模式能解决的问题">模板设计模式能解决的问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#最佳实践">最佳实践</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#接口">接口</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本介绍-3">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#深入讨论">深入讨论</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#注意事项和细节">注意事项和细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#实现接口vs继承类">实现接口VS继承类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#接口的多态特性">接口的多态特性</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#内部类">内部类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本介绍-4">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#基本语法-1">基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#内部类的分类">内部类的分类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#局部内部类的使用">局部内部类的使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#匿名内部类的使用">匿名内部类的使用!!!!!</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#匿名内部类的最佳实践">匿名内部类的最佳实践</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#成员内部类的使用">成员内部类的使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#静态内部类的使用">静态内部类的使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#课堂测试题">课堂测试题</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第11章 枚举和注解</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#第11章-枚举和注解">第11章 枚举和注解</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#先看一个需求">先看一个需求</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#枚举">枚举</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#枚举的二种实现方式">枚举的二种实现方式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#自定义类实现枚举-应用案例">自定义类实现枚举-应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-关键字实现枚举-快速入门">enum 关键字实现枚举-快速入门</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-关键字实现枚举注意事项">enum 关键字实现枚举注意事项</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-常用方法说明">enum 常用方法说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-常用方法应用实例">enum 常用方法应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-实现接口">enum 实现接口</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#注解的理解">注解的理解</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#基本的annotation-介绍">基本的Annotation 介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#基本的annotation-应用案例">基本的Annotation 应用案例</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#override"><span class="citation" data-cites="Override">@Override</span></a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#deprecated"><span class="citation" data-cites="Deprecated">@Deprecated</span></a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#suppresswarnings"><span class="citation" data-cites="SuppressWarnings">@SuppressWarnings</span></a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#属性介绍以及说明">属性介绍以及说明</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#jdk-的元annotation元注解">JDK 的元Annotation(元注解)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#元注解的种类">元注解的种类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#retention"><span class="citation" data-cites="Retention">@Retention</span></a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#target"><span class="citation" data-cites="Target">@Target</span></a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#documented"><span class="citation" data-cites="Documented">@Documented</span></a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#inherited"><span class="citation" data-cites="Inherited">@Inherited</span></a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第12章 异常Exception</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#第12章-异常exception">第12章 异常Exception</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#快速入门">快速入门</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常介绍">异常介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常体系图一览">异常体系图一览!</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常体系图">异常体系图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常体系图的小结">异常体系图的小结</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#常见的运行时异常">常见的运行时异常</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#常见的运行时异常包括">常见的运行时异常包括</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#常见的运行时异常举例">常见的运行时异常举例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#编译异常">编译异常</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#常见的编译异常">常见的编译异常</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常处理">异常处理</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常处理的方式">异常处理的方式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#示意图">示意图</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#try-catch-异常处理">try-catch 异常处理</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#try-catch-方式处理异常说明">try-catch 方式处理异常说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#try-catch-方式处理异常细节">try-catch 方式处理异常细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#练习">练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#try-catch-finally-执行顺序小结">try-catch-finally 执行顺序小结</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#课后练习题">课后练习题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#throws-异常处理">throws 异常处理</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#快速入门案例">快速入门案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#注意事项和使用细节">注意事项和使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#自定义异常">自定义异常</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#基本概念">基本概念</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#自定义异常的步骤">自定义异常的步骤</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#自定义异常的应用实例">自定义异常的应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#throw-和-throws-的区别">throw 和 throws 的区别</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#练习-1">练习</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第13章 常用类</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#第13章-常用类">第13章 常用类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类">包装类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类的分类">包装类的分类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类和基本数据的转换">包装类和基本数据的转换</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类型和string-类型的相互转换">包装类型和String 类型的相互转换</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#integer-类和character-类的常用方法">Integer 类和Character 类的常用方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#integer-类面试题">Integer 类面试题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-类">String 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-类的理解和创建对象">String 类的理解和创建对象</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#创建string-对象的两种方式">创建String 对象的两种方式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#两种创建string-对象的区别">两种创建String 对象的区别</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#课堂测试题">课堂测试题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#字符串的特性">字符串的特性</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#说明">说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#面试题">面试题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-类的常见方法">String 类的常见方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#说明-1">说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-类的常见方法一览">String 类的常见方法一览</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuffer-类">StringBuffer 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-vs-stringbuffer">String VS StringBuffer</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#构造器">构造器</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-和-stringbuffer-相互转换">String 和 StringBuffer 相互转换</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuffer-类常见方法">StringBuffer 类常见方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuffer-类测试">StringBuffer 类测试</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuffer-类练习">StringBuffer 类练习</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuilder-类">StringBuilder 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringstringbuffer-和stringbuilder-的比较">String、StringBuffer 和StringBuilder 的比较</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringstringbuffer-和stringbuilder-的效率测试">String、StringBuffer 和StringBuilder 的效率测试</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringstringbuffer-和-stringbuilder-的选择">String、StringBuffer 和 StringBuilder 的选择</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#math-类">Math 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#基本介绍-2">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#方法一览均为静态方法">方法一览(均为静态方法)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#math-类常见方法应用案例">Math 类常见方法应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#arrays-类">Arrays 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#arrays-类常见方法应用案例">Arrays 类常见方法应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#system-类">System 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#system-类常见方法和案例">System 类常见方法和案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#biginteger-和bigdecimal-类">BigInteger 和BigDecimal 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#介绍">介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#biginteger-和-bigdecimal-常见方法">BigInteger 和 BigDecimal 常见方法</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#日期类">日期类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#第一代日期类">第一代日期类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#第二代日期类">第二代日期类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#第三代日期类">第三代日期类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#datetimeformatter-格式日期类">DateTimeFormatter 格式日期类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#instant-时间戳">Instant 时间戳</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#第三代日期类更多方法">第三代日期类更多方法</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第14章 集合</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#第14章-集合">第14章 集合</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#集合的理解和好处">集合的理解和好处</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#数组">数组</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#集合">集合</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#集合的框架体系">集合的框架体系</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collection-接口和常用方法">Collection 接口和常用方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collection-接口实现类的特点">Collection 接口实现类的特点</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collection-接口遍历元素方式1-使用iterator">Collection 接口遍历元素方式1-使用Iterator</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collection-接口遍历对象方式2-for-循环增强">Collection 接口遍历对象方式2-for 循环增强</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#list-接口和常用方法">List 接口和常用方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#list-接口基本介绍">List 接口基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#list-接口的常用方法">List 接口的常用方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#list-接口课堂练习">List 接口课堂练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#list-的三种遍历方式arraylist-linkedlistvector">List 的三种遍历方式[ArrayList, LinkedList,Vector]</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#实现类的课堂练习2">实现类的课堂练习2</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-底层结构和源码分析">ArrayList 底层结构和源码分析</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-的注意事项">ArrayList 的注意事项</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-的底层操作机制源码分析">ArrayList 的底层操作机制源码分析</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#vector-底层结构和源码剖析">Vector 底层结构和源码剖析</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#vector-的基本介绍">Vector 的基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#vector-和-arraylist-的比较">Vector 和 ArrayList 的比较</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedlist-底层结构">LinkedList 底层结构</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedlist-的全面说明">LinkedList 的全面说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedlist-的底层操作机制">LinkedList 的底层操作机制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedlist-的增删改查案例">LinkedList 的增删改查案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-和linkedlist-比较">ArrayList 和LinkedList 比较</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-和linkedlist-的比较">ArrayList 和LinkedList 的比较</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口和常用方法">Set 接口和常用方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口基本介绍">Set 接口基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口的常用方法">Set 接口的常用方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口的遍历方式">Set 接口的遍历方式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口的常用方法举例">Set 接口的常用方法举例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口实现类-hashset">Set 接口实现类-HashSet</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashset-的全面说明">HashSet 的全面说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashset-案例说明">HashSet 案例说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashset-底层机制说明">HashSet 底层机制说明</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#实例测试">实例测试</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashset-课堂练习1">HashSet 课堂练习1</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口实现类-linkedhashset">Set 接口实现类-LinkedHashSet</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedhashset-的全面说明">LinkedHashSet 的全面说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedhashset-课后练习题">LinkedHashSet 课后练习题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口和常用方法">Map 接口和常用方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类的特点实用">Map 接口实现类的特点[实用]</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口常用方法">Map 接口常用方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口遍历方法">Map 接口遍历方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口课堂练习">Map 接口课堂练习</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类-hashmap">Map 接口实现类-HashMap</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashmap-小结">HashMap 小结</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashmap-底层机制及源码剖析">HashMap 底层机制及源码剖析</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类-hashtable">Map 接口实现类-Hashtable</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashtable-的基本介绍">HashTable 的基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#hashtable-和hashmap-对比">Hashtable 和HashMap 对比</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类-properties">Map 接口实现类-Properties</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#基本使用">基本使用</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#总结-开发中如何选择集合实现类">总结-开发中如何选择集合实现类!</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#treeset">TreeSet</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#treemap">TreeMap</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collections-工具类">Collections 工具类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collections-工具类介绍">Collections 工具类介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#排序操作均为static-方法">排序操作(均为static 方法)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#查找替换">查找、替换</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第15章 泛型</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#第15章-泛型">第15章 泛型</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的理解和好处">泛型的理解和好处</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#看一个需求">看一个需求</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#使用传统方法的问题分析">使用传统方法的问题分析</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型快速体验">泛型快速体验</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的好处">泛型的好处</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型介绍">泛型介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的语法">泛型的语法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的声明">泛型的声明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的实例化">泛型的实例化</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型使用举例">泛型使用举例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型使用的注意事项和细节">泛型使用的注意事项和细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型课堂类型">泛型课堂类型</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型课堂练习题">泛型课堂练习题</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#自定义泛型">自定义泛型</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#自定义泛型类">自定义泛型类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#自定义泛型接口">自定义泛型接口</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#自定义泛型方法">自定义泛型方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#自定义泛型方法练习">自定义泛型方法练习</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的继承和通配符">泛型的继承和通配符</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的继承和通配符说明">泛型的继承和通配符说明</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#junit">JUnit</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第16章 坦克大战1</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#第16章-坦克大战1">第16章 坦克大战1</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#java-绘图坐标体系">java 绘图坐标体系</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#坐标体系-介绍">坐标体系-介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#坐标体系-像素">坐标体系-像素</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#介绍-快速入门">介绍-快速入门</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#绘图原理">绘图原理</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#graphics-类">Graphics 类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#绘出坦克">绘出坦克</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#java-事件处理机制">java 事件处理机制</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#基本说明">基本说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#示意图">示意图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#事件处理机制深入理解">事件处理机制深入理解</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#坦克动起来">坦克动起来</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#本章作业">本章作业</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第17章 多线程基础</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#第17章-多线程基础">第17章 多线程基础</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程相关概念">线程相关概念</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#程序program">程序(program)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#进程">进程</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程">线程</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#其他相关概念">其他相关概念</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程基本使用">线程基本使用</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#创建线程的两种方式">创建线程的两种方式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程应用案例1-继承thread-类">线程应用案例1-继承Thread 类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程应用案例2-实现runnable-接口">线程应用案例2-实现Runnable 接口</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程使用应用案例-多线程执行">线程使用应用案例-多线程执行</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程如何理解">线程如何理解</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#继承thread-vs-实现runnable-的区别">继承Thread vs 实现Runnable 的区别</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程终止">线程终止</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#基本说明">基本说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#应用案例">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程常用方法">线程常用方法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#常用方法第一组">常用方法第一组</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#注意事项和细节">注意事项和细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#常用方法第二组">常用方法第二组</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#课堂练习">课堂练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#用户线程和守护线程">用户线程和守护线程</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#应用案例-1">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程的生命周期">线程的生命周期</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程的几种状态">线程的几种状态</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程状态转换图">线程状态转换图!!!!</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#synchronized">Synchronized</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程同步机制">线程同步机制</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#同步具体方法-synchronized">同步具体方法-Synchronized</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#方法一同步代码块">方法一同步代码块</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#方法二方法声明">方法二方法声明</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#分析同步原理">分析同步原理</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#互斥锁">互斥锁</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#注意事项和细节-1">注意事项和细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程的死锁">线程的死锁</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#应用案例-2">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#释放锁">释放锁</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#下面操作会释放锁">下面操作会释放锁</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#下面操作不会释放锁">下面操作不会释放锁</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第18章 坦克大战2</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#第18章-坦克大战2">第18章 坦克大战2</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#线程-应用到坦克大战">线程-应用到坦克大战</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#坦克大战03">坦克大战0.3</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#坦克大战04">坦克大战0.4</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第19章 IO流</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#第19章-io流">第19章 IO流</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#文件">文件</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#常用的文件操作">常用的文件操作</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#创建文件对象相关构造器和方法">创建文件对象相关构造器和方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#获取文件的相关信息">获取文件的相关信息</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#目录的操作和文件删除">目录的操作和文件删除</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#io-流原理及流的分类">IO 流原理及流的分类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#java-io-流原理">Java IO 流原理</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#流的分类">流的分类</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#io-流体系图-常用的类">IO 流体系图-常用的类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#io-流体系图">IO 流体系图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#文件-vs-流">文件 VS 流</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileinputstream-介绍">FileInputStream 介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileinputstream-应用实例">FileInputStream 应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileoutputstream-介绍">FileOutputStream 介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileoutputstream-应用实例">FileOutputStream 应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileoutputstream-应用实例2">FileOutputStream 应用实例2</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#filereader-和filewriter-介绍">FileReader 和FileWriter 介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#filereader-相关方法">FileReader 相关方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#filewriter-相关方法">FileWriter 相关方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#filereader-和filewriter-应用案例">FileReader 和FileWriter 应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#节点流和处理流">节点流和处理流</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#节点流和处理流一览图">节点流和处理流一览图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#节点流和处理流的区别和联系">节点流和处理流的区别和联系</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#处理流的功能">处理流的功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#处理流-bufferedreader-和bufferedwriter">处理流 BufferedReader 和BufferedWriter</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#处理流bufferedinputstream-和bufferedoutputstream">处理流BufferedInputStream 和BufferedOutputStream</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例-1">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#对象流objectinputstream-和objectoutputstream">对象流ObjectInputStream 和ObjectOutputStream</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#对象流介绍">对象流介绍</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例-2">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#标准输入输出流">标准输入输出流</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#介绍">介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例1">应用案例1</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例2">应用案例2</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#转换流inputstreamreader-和outputstreamwriter">转换流InputStreamReader 和OutputStreamWriter</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例-3">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#打印流printstream-和printwriter">打印流PrintStream 和PrintWriter</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#properties-类">Properties 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#应用案例-4">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第20章 坦克大战3</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch20_tank_battle3.md#第20章-坦克大战3">第20章 坦克大战3</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch20_tank_battle3.md#坦克大战05版">坦克大战0.5版</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch20_tank_battle3.md#坦克大战06版">坦克大战0.6版</a></li> </ul></li> </ul></details> #### Java进阶部分(以下目录点击展开 Click to expand) <details> <summary>第21章 网络编程</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#第21章-网络编程">第21章 网络编程</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#网络的相关概念">网络的相关概念</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#网络通信">网络通信</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#网络">网络</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#ip-地址">ip 地址</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#ipv4-地址分类">ipv4 地址分类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#域名">域名</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#网络通信协议">网络通信协议</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#tcp-和-udp">TCP 和 UDP</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#inetaddress-类">InetAddress 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#相关方法">相关方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#应用案例">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#socket">Socket</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#基本介绍">基本介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#tcp-网络通信编程">TCP 网络通信编程</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#应用案例1使用字节流">应用案例1(使用字节流)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#应用案例2使用字节流">应用案例2(使用字节流)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#应用案例3使用字符流">应用案例3(使用字符流)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#应用案例4">应用案例4</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#netstat-指令">netstat 指令</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#tcp-网络通讯">TCP 网络通讯</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#udp-网络通信编程">UDP 网络通信编程</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#基本介绍-2">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#基本流程">基本流程</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#应用案例-1">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第22章 多用户即时通信系统</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#第22章-多用户即时通信系统">第22章 多用户即时通信系统</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#项目涉及">项目涉及</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#项目开发流程">项目开发流程</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#需求分析">需求分析</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能实现-用户登录">功能实现-用户登录</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能实现-拉取在线用户列表">功能实现-拉取在线用户列表</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能实现-无异常退出">功能实现-无异常退出</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能实现-私聊">功能实现-私聊</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能实现-群聊">功能实现-群聊</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能说明-发文件">功能说明-发文件</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#功能实现-服务器推送新闻">功能实现-服务器推送新闻</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#客户端">客户端</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#服务器端">服务器端</a></li> </ul></li> </ul></details> <details> <summary>第23章 反射(reflection)</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第23章-反射reflection">第23章 反射(reflection)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#一个需求引出反射">一个需求引出反射</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#反射机制">反射机制</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#java-reflection">Java Reflection</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#java-反射机制原理示意图">Java 反射机制原理示意图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#java-反射机制可以完成">Java 反射机制可以完成</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#反射相关的主要类">反射相关的主要类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#反射优点和缺点">反射优点和缺点</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#反射调用优化-关闭访问检查">反射调用优化-关闭访问检查</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#class-类">Class 类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#class-类的常用方法">Class 类的常用方法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#获取class-类对象">获取Class 类对象</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#哪些类型有class-对象">哪些类型有Class 对象</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#如下类型有class-对象">如下类型有Class 对象</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#类加载">类加载</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#基本说明">基本说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#类加载时机">类加载时机</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#类加载过程图">类加载过程图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#类加载各阶段完成任务">类加载各阶段完成任务</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#加载阶段">加载阶段</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#连接阶段-验证">连接阶段-验证</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#连接阶段-准备">连接阶段-准备</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#连接阶段-解析">连接阶段-解析</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#initialization初始化">Initialization初始化</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#通过反射获取类的结构信息">通过反射获取类的结构信息</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第一组-javalangclass-类">第一组: java.lang.Class 类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第二组-javalangreflectfield-类">第二组: java.lang.reflect.Field 类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第三组-javalangreflectmethod-类">第三组: java.lang.reflect.Method 类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第四组-javalangreflectconstructor-类">第四组: java.lang.reflect.Constructor 类</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#通过反射创建对象">通过反射创建对象</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#案例演示">案例演示</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#通过反射访问类中的成员">通过反射访问类中的成员</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#访问属性">访问属性</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#访问方法">访问方法</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第24章 零基础学MySQL</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#第24章-零基础学mysql">第24章 零基础学MySQL</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#解决之道">解决之道</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#文件数据库">文件、数据库</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-数据库的安装和配置">MySQL 数据库的安装和配置</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用命令行窗口连接mysql-数据库">使用命令行窗口连接MYSQL 数据库</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#操作示意图">操作示意图</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据库三层结构">数据库三层结构</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据在数据库中的存储方式">数据在数据库中的存储方式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#sql-语句分类">SQL 语句分类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#创建数据库">创建数据库</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#查看删除数据库">查看、删除数据库</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#备份恢复数据库">备份恢复数据库</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#备份恢复数据库的表">备份恢复数据库的表</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#创建表">创建表</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-常用数据类型列类型">Mysql 常用数据类型(列类型)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数值型整数的基本使用">数值型(整数)的基本使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#定义一个无符号的整数">定义一个无符号的整数</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数值型bit的使用">数值型(bit)的使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数值型小数的基本使用">数值型(小数)的基本使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#字符串的基本使用">字符串的基本使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#字符串使用细节">字符串使用细节</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#日期类型的基本使用">日期类型的基本使用</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#创建表练习">创建表练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#修改表-基本介绍">修改表-基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#修改表-课堂练习">修改表-课堂练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据库ccreaterreaduupdateddelete语句">数据库C[create]R[read]U[update]D[delete]语句</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#insert-语句">Insert 语句</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用insert-语句向表中插入数据">使用INSERT 语句向表中插入数据。</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#细节说明">细节说明</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#update-语句">update 语句</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用-update-语句修改表中数据">使用 update 语句修改表中数据</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#基本使用">基本使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用细节">使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#delete-语句">delete 语句</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用delete-语句删除表中数据">使用delete 语句删除表中数据</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用细节-1">使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#select-语句">select 语句</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#基本语法">基本语法</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#注意事项创建测试表学生表">注意事项(创建测试表学生表)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#练习">练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用表达式对查询的列进行运算">使用表达式对查询的列进行运算</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#在select-语句中可使用as-语句">在select 语句中可使用as 语句</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#练习-1">练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#在where-子句中经常使用的运算符">在where 子句中经常使用的运算符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用where-子句进行过滤查询">使用where 子句,进行过滤查询</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用order-by-子句排序查询结果">使用order by 子句排序查询结果</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#合计统计函数">合计/统计函数</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#count">count</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#sum">sum</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#avg">avg</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#maxmin">max/min</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用group-by-子句对列进行分组">使用group by 子句对列进行分组</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用having-子句对分组后的结果进行过滤">使用having 子句对分组后的结果进行过滤</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#字符串相关函数">字符串相关函数</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数学相关函数">数学相关函数</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#时间日期相关函数">时间日期相关函数</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#加密和系统函数">加密和系统函数</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#流程控制函数">流程控制函数</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表查询--加强">mysql 表查询--加强</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#介绍">介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#分页查询">分页查询</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#使用分组函数和分组子句">使用分组函数和分组子句</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据分组的总结">数据分组的总结</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-多表查询">mysql 多表查询</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#多表查询练习">多表查询练习</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#自连接">自连接</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表子查询">mysql 表子查询</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#什么是子查询">什么是子查询</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#单行子查询">单行子查询</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#多行子查询">多行子查询</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#子查询当做临时表使用">子查询当做临时表使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#在多行子查询中使用-all-操作符">在多行子查询中使用 all 操作符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#在多行子查询中使用-any-操作符">在多行子查询中使用 any 操作符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#多列子查询">多列子查询</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#在from-子句中使用子查询">在from 子句中使用子查询</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#表复制">表复制</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#自我复制数据蠕虫复制">自我复制数据(蠕虫复制)</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#合并查询">合并查询</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#介绍-1">介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表外连接">mysql 表外连接</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#外连接">外连接</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-约束">mysql 约束</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#primary-key主键">primary key(主键)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#not-null非空">not null(非空)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#unique唯一">unique(唯一)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#foreign-key外键">foreign key(外键)</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#check">check</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#商店售货系统表设计案例">商店售货系统表设计案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#自增长">自增长</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#自增长基本介绍">自增长基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#自增长使用细节">自增长使用细节</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-索引">mysql 索引</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#索引快速入门">索引快速入门</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#索引的原理">索引的原理</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#索引的类">索引的类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#索引使用">索引使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#哪些列上适合使用索引">哪些列上适合使用索引</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-事务">mysql 事务</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#什么是事务">什么是事务</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#事务和锁">事务和锁</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#回退事务">回退事务</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#提交事务">提交事务</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#事务细节讨论">事务细节讨论</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-事务隔离级别">mysql 事务隔离级别</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#事务隔离级别介绍">事务隔离级别介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#查看事务隔离级别">查看事务隔离级别</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#事务隔离级别">事务隔离级别</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-的事务隔离级--案例">mysql 的事务隔离级--案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#设置事务隔离级别">设置事务隔离级别</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-事务acid">mysql 事务ACID</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#事务的acid-特性">事务的acid 特性</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表类型和存储引擎">mysql 表类型和存储引擎</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#主要的存储引擎表类型特点">主要的存储引擎/表类型特点</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#细节说明-1">细节说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#三种存储引擎表使用案例">三种存储引擎表使用案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#如何选择表的存储引擎">如何选择表的存储引擎</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#修改存储引擎">修改存储引擎</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#视图view">视图(view)</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#看一个需求">看一个需求</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#基本概念">基本概念</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#视图的基本使用">视图的基本使用</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#视图细节讨论">视图细节讨论</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#视图最佳实践">视图最佳实践</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#视图课堂练习">视图课堂练习</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-管理">Mysql 管理</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-用户">Mysql 用户</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#创建用户">创建用户</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#删除用户">删除用户</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#用户修改密码">用户修改密码</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-中的权限">mysql 中的权限</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#给用户授权">给用户授权</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#回收用户授权">回收用户授权</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#权限生效指令">权限生效指令</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#课堂练习题">课堂练习题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#细节说明-2">细节说明</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#本章作业">本章作业</a></li> </ul></li> </ul></details> <details> <summary>第25章 JDBC 和数据库连接池</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#第25章-jdbc-和数据库连接池">第25章 JDBC 和数据库连接池</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-概述">JDBC 概述</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#模拟jdbc">模拟JDBC</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-带来的好处">JDBC 带来的好处</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-快速入门">JDBC 快速入门</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-程序编写步骤">JDBC 程序编写步骤</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-第一个程序">JDBC 第一个程序</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#获取数据库连接5种方式">获取数据库连接5种方式</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#方式1">方式1</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#方式2">方式2</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#方式3">方式3</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#方式4">方式4</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#方式5">方式5</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#resultset结果集">ResultSet[结果集]</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍-1">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#应用实例">应用实例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#statement">Statement</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍-2">基本介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#preparedstatement">PreparedStatement</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍-3">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#预处理好处">预处理好处</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#应用案例">应用案例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-的相关-api-小结">JDBC 的相关 API 小结</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#封装jdbcutils">封装JDBCUtils</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#说明">说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#代码实现">代码实现</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#事务">事务</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍-4">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#应用实例-1">应用实例</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#批处理">批处理</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍-5">基本介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#数据库连接池">数据库连接池</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#5k-次连接数据库问题">5k 次连接数据库问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#传统获取connection-问题分析">传统获取Connection 问题分析</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#数据库连接池种类">数据库连接池种类</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#c3p0-应用实例">C3P0 应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#druid德鲁伊应用实例">Druid(德鲁伊)应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#将jdbcutils-工具类改成druid德鲁伊实现">将JDBCUtils 工具类改成Druid(德鲁伊)实现</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#apachedbutils">Apache—DBUtils</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#先分析一个问题">先分析一个问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#自定义方法解决">自定义方法解决</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本介绍-6">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#应用实例-2">应用实例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#表-和-javabean-的类型映射关系">表 和 JavaBean 的类型映射关系</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#dao-和增删改查通用方法-basicdao">DAO 和增删改查通用方法-BasicDao</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#先分析一个问题-1">先分析一个问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#基本说明">基本说明</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#basicdao-应用实例">BasicDAO 应用实例</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第26章 满汉楼</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#第26章-满汉楼">第26章 满汉楼</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#程序框架图">程序框架图</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#代码实现">代码实现</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#数据库">数据库</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#java">Java</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#多表查询思路">多表查询思路</a></li> </ul></li> </ul></li> </ul></details> <details> <summary>第27章 正则表达式</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#第27章-正则表达式">第27章 正则表达式</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#为什么要学习正则表达式">为什么要学习正则表达式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#再提出几个问题">再提出几个问题</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#解决之道-正则表达式">解决之道-正则表达式</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式基本介绍">正则表达式基本介绍</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#介绍">介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式底层实现">正则表达式底层实现</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#实例分析">实例分析</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式语法">正则表达式语法</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#基本介绍">基本介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#元字符metacharacter-转义号">元字符(Metacharacter)-转义号\\</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#元字符-字符匹配符">元字符-字符匹配符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#元字符-选择匹配符">元字符-选择匹配符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#元字符-限定符">元字符-限定符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#元字符-定位符">元字符-定位符</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#分组">分组</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#非贪婪匹配">非贪婪匹配</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#应用实例">应用实例</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#对字符串进行如下验证">对字符串进行如下验证</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式三个常用类">正则表达式三个常用类</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#matcher-类">Matcher 类</a></li> </ul></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#分组捕获反向引用">分组、捕获、反向引用</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#提出需求">提出需求</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#介绍-1">介绍</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#看几个小案例">看几个小案例</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#经典的结巴程序">经典的结巴程序</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#string-类中使用正则表达式">String 类中使用正则表达式</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#替换功能">替换功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#判断功能">判断功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#分割功能">分割功能</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#本章作业">本章作业</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#附正则表达式元字符详解">附:正则表达式元字符详解</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#附正则表达式参考大全">附:正则表达式参考大全</a></li> </ul></li> </ul></details> <details> <summary>第28章 骑士周游问题</summary> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#第28章-骑士周游问题">第28章 骑士周游问题</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#算法优化意义">算法优化意义</a></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#经典算法面试题-骑士周游问题">经典算法面试题-骑士周游问题</a> <ul> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#马踏棋盘算法介绍">马踏棋盘算法介绍</a></li> </ul></li> <li><a href="https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#骑士周游问题的解决步骤和思路分析">骑士周游问题的解决步骤和思路分析</a></li> </ul></li> </ul></details> ### Overview | Title | Content | Code | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | **Java基础部分** | | | | [第2章 Java概述与基础知识](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#第2章-java概述与基础知识) | [Java 历史](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-历史) \| [Java技术体系平台](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java技术体系平台) \| [Java 重要特点](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-重要特点) \| [JDK,JRE](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#jdkjre) \| [Java 快速入门](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-快速入门) \| [注意细节](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#注意细节) \| [Java 转义字符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-转义字符) \| [注释(comment)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#注释comment) \| [Java 代码规范](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#java-代码规范) \| [DOS 命令](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#dos-命令) \| [环境变量path配置及其作用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch02_java_overview.md#环境变量path配置及其作用) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter02) | | [第3章 变量](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#第3章-变量) | [程序中+号的使用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#程序中号的使用) \| [数据类型](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#数据类型) \| [整数类型](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#整数类型) \| [浮点类型](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#浮点类型) \| [Java API 文档](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#java-api-文档) \| [字符类型(char)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#字符类型char) \| [布尔类型:boolean](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#布尔类型boolean) \| [基本数据类型转换](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#基本数据类型转换) \| [ 基本数据类型和String 类型的转换](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch03_variable.md#基本数据类型和string-类型的转换) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter03) | | [第4章 运算符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#第4章-运算符) | [运算符介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#运算符介绍) \| [算术运算符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#算术运算符) \| [关系运算符(比较运算符)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#关系运算符比较运算符) \| [三元运算符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#三元运算符) \| [运算符优先级](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#运算符优先级) \| [标识符的命名规则和规范](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#标识符的命名规则和规范) \| [关键字](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#关键字) \| [保留字](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#保留字) \| [键盘输入语句](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#键盘输入语句) \| [进制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#进制) \| [原码、反码、补码](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#原码反码补码) \| [位运算符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch04_operator.md#位运算符) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter04) | | [第5章 程序控制结构](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#第5章-程序控制结构) | [程序流程控制介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#程序流程控制介绍) \| [if 分支](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#if-分支) \| [switch 分支结构](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#switch-分支结构) \| [for 循环控制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#for-循环控制) \| [while 循环控制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#while-循环控制) \| [do..while 循环控制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#dowhile-循环控制) \| [跳转控制语句-break](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#跳转控制语句-break) \| [跳转控制语句-continue](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#跳转控制语句-continue) \| [跳转控制语句-return](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch05_program_control_structure.md#跳转控制语句-return) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter05) | | [第6章 数组、排序和查找](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#第6章-数组排序和查找) | [数组介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组介绍) \| [数组的使用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组的使用) \| [数组使用注意事项和细节](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组使用注意事项和细节) \| [数组应用案例](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组应用案例) \| [数组赋值机制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组赋值机制) \| [数组拷贝](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组拷贝) \| [数组添加/扩容](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#数组添加扩容) \| [多维数组 二维数组](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#多维数组-二维数组) \| [二维数组的应用案例](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#二维数组的应用案例) \| [二维数组使用细节和注意事项](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch06_arrays_sort_and_search.md#二维数组使用细节和注意事项) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter06) | | [第7章 面向对象编程(基础部分)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#第7章-面向对象编程基础部分) | [类与对象](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#类与对象) \| [成员方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法) \| [成员方法传参机制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#成员方法传参机制) \| [方法递归调用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#方法递归调用) \| [方法重载(OverLoad)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#方法重载overload) \| [可变参数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#可变参数) \| [作用域](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#作用域) \| [构造方法/构造器](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#构造方法构造器) \| [javap的使用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#javap的使用) \| [对象创建的流程分析](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#对象创建的流程分析) \| [this 关键字](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch07_oop_fundamentals.md#this-关键字) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter07) | | [第8章 面向对象编程(中级部分)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#第8章-面向对象编程中级部分) | [IDEA 常用快捷键](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#idea-常用快捷键) \| [包](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#包) \| [访问修饰符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#访问修饰符) \| [面向对象编程三大特征](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#面向对象编程三大特征) \| [面向对象编程-继承](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#面向对象编程-继承) \| [super 关键字](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#super-关键字) \| [方法重写/覆盖(override)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#方法重写覆盖override) \| [面向对象编程-多态](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#面向对象编程-多态) \| [Object 类详解](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch08_opp_intermediate.md#object-类详解) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter08) | | [第9章 项目-房屋出租系统](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#第9章-项目-房屋出租系统) | [房屋出租系统-需求](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-需求) \| [房屋出租系统-界面](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-界面) \| [房屋出租系统-设计(!!)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-设计) \| [房屋出租系统-实现](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch09_house_rental_system.md#房屋出租系统-实现) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter09) | | &emsp; | &emsp; | | | **Java高级部分** | | | | [第10章 面向对象编程(高级部分)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#第10章-面向对象编程高级部分) | [类变量和类方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#类变量和类方法) \| [理解main 方法语法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#理解main-方法语法) \| [代码块](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#代码块) \| [单例设计模式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#单例设计模式) \| [final 关键字](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#final-关键字) \| [抽象类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#抽象类) \| [抽象类最佳实践-模板设计模式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#抽象类最佳实践-模板设计模式) \| [接口](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#接口) \| [内部类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch10_oop_advanced.md#内部类) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter10) | | [第11章 枚举和注解](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#第11章-枚举和注解) | [先看一个需求](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#先看一个需求) \| [枚举](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#枚举) \| [enum 关键字实现枚举-快速入门](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-关键字实现枚举-快速入门) \| [enum 常用方法说明](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-常用方法说明) \| [enum 常用方法应用实例](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-常用方法应用实例) \| [enum 实现接口](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#enum-实现接口) \| [注解的理解](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#注解的理解) \| [基本的Annotation 应用案例](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#基本的annotation-应用案例) \| [JDK 的元Annotation(元注解)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch11_enum_and_annotation.md#jdk-的元annotation元注解) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter11) | | [第12章 异常Exception](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#第12章-异常exception) | [异常体系图一览!](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常体系图一览) \| [常见的运行时异常](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#常见的运行时异常) \| [编译异常](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#编译异常) \| [异常处理](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#异常处理) \| [try-catch 异常处理](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#try-catch-异常处理) \| [throws 异常处理](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#throws-异常处理) \| [自定义异常](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#自定义异常) \| [throw 和 throws 的区别](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch12_exception.md#throw-和-throws-的区别) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter12) | | [第13章 常用类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#第13章-常用类) | [包装类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类) \| [包装类和基本数据的转换](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类和基本数据的转换) \| [包装类型和String 类型的相互转换](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#包装类型和string-类型的相互转换) \| [Integer 类和Character 类的常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#integer-类和character-类的常用方法) \| [String 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-类) \| [创建String 对象的两种方式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#创建string-对象的两种方式) \| [两种创建String 对象的区别](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#两种创建string-对象的区别) \| [字符串的特性](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#字符串的特性) \| [String 类的常见方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-类的常见方法) \| [StringBuffer 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuffer-类) \| [String VS StringBuffer](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#string-vs-stringbuffer) \| [构造器](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#构造器) \| [StringBuilder 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#stringbuilder-类) \| [Math 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#math-类) \| [Arrays 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#arrays-类) \| [System 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#system-类) \| [BigInteger 和BigDecimal 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#biginteger-和bigdecimal-类) \| [日期类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch13_common_class.md#日期类) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter13) | | [第14章 集合](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#第14章-集合) | [集合的理解和好处](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#集合的理解和好处) \| [集合的框架体系](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#集合的框架体系) \| [Collection 接口和常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collection-接口和常用方法) \| [List 接口和常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#list-接口和常用方法) \| [ArrayList 底层结构和源码分析](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-底层结构和源码分析) \| [Vector 底层结构和源码剖析](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#vector-底层结构和源码剖析) \| [LinkedList 底层结构](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#linkedlist-底层结构) \| [ArrayList 和LinkedList 比较](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#arraylist-和linkedlist-比较) \| [Set 接口和常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口和常用方法) \| [Set 接口实现类-HashSet](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口实现类-hashset) \| [Set 接口实现类-LinkedHashSet](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#set-接口实现类-linkedhashset) \| [Map 接口和常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口和常用方法) \| [Map 接口实现类-HashMap](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类-hashmap) \| [Map 接口实现类-Hashtable](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类-hashtable) \| [Map 接口实现类-Properties](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#map-接口实现类-properties) \| [总结-开发中如何选择集合实现类!](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#总结-开发中如何选择集合实现类) \| [TreeSet](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#treeset) \| [TreeMap](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#treemap) \| [Collections 工具类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch14_collection_and_map.md#collections-工具类) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter14) | | [第15章 泛型](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#第15章-泛型) | [泛型的理解和好处](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的理解和好处) \| [泛型介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型介绍) \| [泛型的语法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的语法) \| [泛型课堂类型](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型课堂类型) \| [自定义泛型](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#自定义泛型) \| [泛型的继承和通配符](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#泛型的继承和通配符) \| [JUnit](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch15_generics.md#junit) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter15) | | [第16章 坦克大战1](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#第16章-坦克大战1) | [java 绘图坐标体系](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#java-绘图坐标体系) \| [Graphics 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#graphics-类) \| [java 事件处理机制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch16_tank_battle1.md#java-事件处理机制) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter16) | | [第17章 多线程基础](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#第17章-多线程基础) | [线程相关概念](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程相关概念) \| [线程基本使用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程基本使用) \| [继承Thread vs 实现Runnable 的区别](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#继承thread-vs-实现runnable-的区别) \| [线程终止](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程终止) \| [线程常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程常用方法) \| [用户线程和守护线程](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#用户线程和守护线程) \| [线程的生命周期](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程的生命周期) \| [线程状态转换图!!!!](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程状态转换图) \| [Synchronized](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#synchronized) \| [线程同步机制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程同步机制) \| [同步具体方法-Synchronized](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#同步具体方法-synchronized) \| [分析同步原理](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#分析同步原理) \| [互斥锁](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#互斥锁) \| [线程的死锁](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#线程的死锁) \| [释放锁](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch17_multithreading_basics.md#释放锁) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter17) | | [第18章 坦克大战2](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#第18章-坦克大战2) | [线程-应用到坦克大战](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#线程-应用到坦克大战) \| [坦克大战0.3](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#坦克大战03) \| [坦克大战0.4](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch18_tank_battle2.md#坦克大战04) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter18) | | [第19章 IO流](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#第19章-io流) | [文件](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#文件) \| [常用的文件操作](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#常用的文件操作) \| [IO 流原理及流的分类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#io-流原理及流的分类) \| [IO 流体系图-常用的类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#io-流体系图-常用的类) \| [IO 流体系图](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#io-流体系图) \| [文件 VS 流](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#文件-vs-流) \| [FileInputStream 介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileinputstream-介绍) \| [FileOutputStream 介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#fileoutputstream-介绍) \| [FileReader 和FileWriter 介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#filereader-和filewriter-介绍) \| [节点流和处理流](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#节点流和处理流) \| [节点流和处理流一览图](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#节点流和处理流一览图) \| [处理流 BufferedReader 和BufferedWriter](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#处理流-bufferedreader-和bufferedwriter) \| [处理流BufferedInputStream 和BufferedOutputStream](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#处理流bufferedinputstream-和bufferedoutputstream) \| [对象流ObjectInputStream 和ObjectOutputStream](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#对象流objectinputstream-和objectoutputstream) \| [对象流介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#对象流介绍) \| [标准输入输出流](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#标准输入输出流) \| [转换流InputStreamReader 和OutputStreamWriter](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#转换流inputstreamreader-和outputstreamwriter) \| [打印流PrintStream 和PrintWriter](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#打印流printstream-和printwriter) \| [Properties 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch19_IO_stream.md#properties-类) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter19) | | [第20章 坦克大战3](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch20_tank_battle3.md#第20章-坦克大战3) | [坦克大战0.5版](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch20_tank_battle3.md#坦克大战05版) \| [坦克大战0.6版](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch20_tank_battle3.md#坦克大战06版) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter20) | | &emsp; | &emsp; | | | **Java进阶部分** | | | | [第21章 网络编程](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#第21章-网络编程) | [网络的相关概念](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#网络的相关概念) \| [InetAddress 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#inetaddress-类) \| [Socket](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#socket) \| [TCP 网络通信编程](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#tcp-网络通信编程) \| [UDP 网络通信编程](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch21_network_programming.md#udp-网络通信编程) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter21) | | [第22章 多用户即时通信系统](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#第22章-多用户即时通信系统) | [项目涉及](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#项目涉及) \| [客户端](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#客户端) \| [服务器端](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch22_multi-user_instant_messaging_system.md#服务器端) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter22) | | [第23章 反射(reflection)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第23章-反射reflection) | [一个需求引出反射](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#一个需求引出反射) \| [反射机制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#反射机制) \| [Java Reflection](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#java-reflection) \| [Class 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#class-类) \| [Class 类的常用方法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#class-类的常用方法) \| [哪些类型有Class 对象](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#哪些类型有class-对象) \| [类加载](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#类加载) \| [类加载过程图](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#类加载过程图) \| [Initialization初始化](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#initialization初始化) \| [通过反射获取类的结构信息](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#通过反射获取类的结构信息) \| [第一组: java.lang.Class 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第一组-javalangclass-类) \| [第二组: java.lang.reflect.Field 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第二组-javalangreflectfield-类) \| [第三组: java.lang.reflect.Method 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第三组-javalangreflectmethod-类) \| [第四组: java.lang.reflect.Constructor 类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#第四组-javalangreflectconstructor-类) \| [通过反射创建对象](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#通过反射创建对象) \| [通过反射访问类中的成员](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch23_reflection.md#通过反射访问类中的成员) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter23) | | [第24章 零基础学MySQL](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#第24章-零基础学mysql) | [数据库三层结构](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据库三层结构) \| [数据在数据库中的存储方式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据在数据库中的存储方式) \| [SQL 语句分类](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#sql-语句分类) \| [创建数据库](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#创建数据库) \| [查看、删除数据库](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#查看删除数据库) \| [备份恢复数据库](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#备份恢复数据库) \| [备份恢复数据库的表](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#备份恢复数据库的表) \| [创建表](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#创建表) \| [Mysql 常用数据类型(列类型)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-常用数据类型列类型) \| [修改表-基本介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#修改表-基本介绍) \| [数据库C[create]R[read]U[update]D[delete]语句](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数据库ccreaterreaduupdateddelete语句) \| [Insert 语句](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#insert-语句) \| [update 语句](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#update-语句) \| [delete 语句](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#delete-语句) \| [select 语句](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#select-语句) \| [合计/统计函数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#合计统计函数) \| [字符串相关函数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#字符串相关函数) \| [数学相关函数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#数学相关函数) \| [时间日期相关函数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#时间日期相关函数) \| [加密和系统函数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#加密和系统函数) \| [流程控制函数](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#流程控制函数) \| [mysql 表查询--加强](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表查询--加强) \| [mysql 多表查询](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-多表查询) \| [mysql 表子查询](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表子查询) \| [表复制](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#表复制) \| [合并查询](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#合并查询) \| [mysql 表外连接](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表外连接) \| [mysql 约束](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-约束) \| [自增长](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#自增长) \| [mysql 索引](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-索引) \| [mysql 事务](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-事务) \| [mysql 事务隔离级别](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-事务隔离级别) \| [mysql 事务ACID](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-事务acid) \| [mysql 表类型和存储引擎](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-表类型和存储引擎) \| [视图(view)](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#视图view) \| [Mysql 管理](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch24_MySQL_basic.md#mysql-管理) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter24) | | [第25章 JDBC 和数据库连接池](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#第25章-jdbc-和数据库连接池) | [JDBC 概述](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-概述) \| [JDBC 快速入门](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-快速入门) \| [获取数据库连接5种方式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#获取数据库连接5种方式) \| [[ResultSet结果集]](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#resultset结果集) \| [Statement](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#statement) \| [PreparedStatement](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#preparedstatement) \| [JDBC 的相关 API 小结](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#jdbc-的相关-api-小结) \| [封装JDBCUtils](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#封装jdbcutils) \| [事务](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#事务) \| [批处理](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#批处理) \| [数据库连接池](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#数据库连接池) \| [Apache—DBUtils](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#apachedbutils) \| [DAO 和增删改查通用方法-BasicDao](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch25_jdbc_and_database_connection_pools.md#dao-和增删改查通用方法-basicdao) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter25) | | [第26章 满汉楼](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#第26章-满汉楼) | [程序框架图](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#程序框架图) \| [代码实现 ](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#代码实现) \| [数据库](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#数据库) \| [Java](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#java) \| [多表查询思路](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch26_man_han_lou.md#多表查询思路) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter26) | | [第27章 正则表达式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#第27章-正则表达式) | [为什么要学习正则表达式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#为什么要学习正则表达式) \| [解决之道-正则表达式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#解决之道-正则表达式) \| [正则表达式基本介绍](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式基本介绍) \| [正则表达式底层实现](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式底层实现) \| [正则表达式语法](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#正则表达式语法) \| [应用实例](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#应用实例) \| [分组、捕获、反向引用](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#分组捕获反向引用) \| [String 类中使用正则表达式](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#string-类中使用正则表达式) \| [附:正则表达式元字符详解](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#附正则表达式元字符详解) \| [附:正则表达式参考大全](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch27_regular_expressions.md#附正则表达式参考大全) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter27) | | [第28章 骑士周游问题](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#第28章-骑士周游问题) | [算法优化意义](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#算法优化意义) \| [经典算法面试题-骑士周游问题](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#经典算法面试题-骑士周游问题) \| [骑士周游问题的解决步骤和思路分析](https://github.com/timerring/backend-tutorial/blob/main/java-tutorial/ch28_the_knight_tour_problem.md#骑士周游问题的解决步骤和思路分析) | [[code]](https://github.com/timerring/backend-tutorial/tree/main/code/java-tutorial/chapter28) | | &emsp; | &emsp; | | ### 参考书籍 ### ChangeLog - v1.1 java部分更新完毕 230615 - v1.0 基础结构 230411 ### TODO - springboot系列更新 - docsify部署 - 整理资料 - 欢迎issue交流讨论,PR订正。 ## 关注更多 <div align=center> <p>扫描下方二维码关注公众号:AIShareLab</p> <img src="resources/qrcode.jpg" width = "180" height = "180"> </div> &emsp;&emsp;AIShareLab,一个关注CV、AI、区块链、Web开发、硬件开发、5G通信等领域的热“AI”分享的社群,微信搜索公众号 AIShareLab 一起交流更多相关知识,前沿算法,Paper解读,项目源码,面经总结。 ## LICENSE <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://img.shields.io/badge/license-CC BY--NC--SA 4.0-lightgrey" /></a><br />本作品采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议</a>进行许可。
1
richard-olsen/LWJGL-3-Tutorial
The code to my YouTube tutorial series
null
# LWJGL 3 Tutorial This project follows along my tutorial series for LWJGL 3, which can be found on [YouTube](https://www.youtube.com/channel/UCVebYXGDlnFPTIB4CT2dcGA) ## Required Items You'll need: - Java - JDK - An IDE you're comfortable with ## To Set Up ### If you have gradle installed - open command shell (eg. cmd, PowerShell, bash) - to build environment for your IDE write `gradle eclipse` or `gradle idea`. For other IDE see gradle docs for it. - import created project to your IDE - Build And Run - you can also build by gradle command `gradle build` and to run `gradle run` ### if you doesn't have gradle (using wrapper) - do same as above but instead of command gradle run gradlew.bat or just gradlew #### Project settings are available in `build.gradle` file ## Libraries used in the project - [LWJGL 3](https://www.lwjgl.org/) - [JOML](https://github.com/JOML-CI/JOML) ## Special Thanks To: - [Lucas Levvy](https://github.com/Levvy055) Setting up the project for Gradle
1
javajon/kubernetes-observability
Tutorial on Kubernetes monitoring techniques with microservices.
null
# Observability of Clusters and Containers # > In control theory, *observability* is a measure of how well internal states of a system can be inferred from knowledge of its external outputs. --Wikipedia Kubernetes is a container management system with a growing wealth of features. Your application running in containers is also a complex system as it embraces the distributed architecture of loosely coupled, highly cohesive services. As these modular containers run, things may not always behave as smoothly as you hope. Embracing the notions of antifragility and designing a system to be resilient despite the realities of resource limitations, network failures, hardware failures and failed software logic. This demands a robust monitoring stack to open views into the behaviors and health of your applications running in a cluster. Three important types of monitoring are metric data events, log streams and tracing. Over time there are services that gather, store and export the metrics and logs. There are Time Series Databases (TSDBs) that append each temporal piece of data. There are monitors that evaluate alerting rules against key changes in data. Lastly, there are dashboards and reports offering views into states based on the metrics and logs gathered during a time range. Ultimately, to provide viewports into the state and health of your cluster and its hosted applications. For metrics and data events in Kubernetes it is common to use: - Prometheus to gather runtime data events and fire alerts - Alertmanager to gather and route alerts based on changing data - Grafana to visually aggregate and decipher the Prometheus data. For logging in Kubernetes it's common to use: - ElasticSearch to store the collated stream data into a searchable time series database - Fluentd to gather the various log streams across the containers - Kibana to visually interact with frequent searches against the ElasticSearch data. For tracing in Kubernetes it's possible to use: - ZOP stack (ZipKin, OpenTracing, Prometheus) - JOP stack [(Jaeger, OpenTracing, Prometheus)](http://www.hawkular.org/blog/2017/06/26/opentracing-appmetrics.html) ## What these instructions do ## - Start a personal Kubernetes cluster - Add a private Docker registry along with a dashboard - Build and push 3 Spring Boot microservices to the registry - Add a monitoring tool stack with Prometheus, Alertmanager and Grafana - Start the 3 microservices on Kubernetes - Monitor the microservices metrics through Prometheus and Grafana ----------- ## Setup ## ### How to get set up ### #### GitHub project #### - Clone this project from GitHub #### Install Kubernetes, a container manager #### - Install [Minikube](https://kubernetes.io/docs/getting-started-guides/minikube/). Other Kubernetes solutions are available, however these steps below are specific to Minikube). Do not start Minikube, just install the command line tool and VirtualBox. Below the script will start Minikube with the correct sizing and configuration. - Install [KubeCtl] (https://kubernetes.io/docs/tasks/tools/install-kubectl/) - From project root run `./minikube-start.sh`. This provisions a personal Kubernetes cluster with a few addons for you. - Verify `minikube status` and `kubectl version` run correctly #### Install Helm, a Kubernetes package manager #### The typical tool used to interact with Kubernetes is KubeCtl. However, the Helm tool further simplifies deployments and makes the provisioning experience more consistent. The quick start doc provides the best instructions: - Install the Kubernetes package manager [Helm](https://docs.helm.sh/using_helm/). Helm is a command line tool that also installs a small complimentary service called Tiller onto your cluster. To setup Tiller for this demonstration run the shell script from within the `helm` directory: ``` cd helm helm-init-rbac.sh ``` This enables Tiller and gives permissions to add the registry UI and monitoring tool stack in the next steps. At this point serveral pods are starting and it takes a few minutes before the deployment is healthy. The startup progress can be observed in the kube-system namespace in the dashboard. ``` kubectl get pods -n kube-system or minikube dashboard ``` -------------------- ## Container Registry ## ### Enhanced UI for private Docker registry ### There is a Minikube addon called *registry* that was enabled in the minikube-start.sh script. It's a private Docker registry, but it lacks a user interface. There is a container that fronts this registry with a helpful dashboard. Start the [Docker registry UI](https://github.com/mkuchin/docker-registry-web) from the project `helm` directory by running: ``` cd helm helm install charts/docker-registry-web --namespace kube-system --name ui ``` In a few minutes a service allots access to a browser based UI. Here you can verify the dashboard service is running and displays the registry contents. At this step the registry is empty but shortly you will deploy three microservices to this Docker registry and are listed with this command: ``` minikube service -n kube-system ui-docker-registry-web ``` The above command opens your default browser to this Docker registry UI page. ### Aside topic, another way to get to Registry ### This browser URL brings you to the same page: ``` http://registry-ui.minikube.st81ess.com ``` This uses a public DNS server that maps minikube.st81ess.com to 192.168.99.100 (the likely, but not guaranteed, Minikube IP on VirtualBox) then with an [ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) it maps registry-ui to the service. -------------------- ## Microservices ## ### Deploy microservices for monitoring ### There are three Spring Boot microservices that communicate with each other: Quotes, Authors and Biographies. The above minikube-start.sh script enables the Minikube addon called "registry". This is a private Docker registry running as a container in your cluster. A simple script builds and deploys these 3 microservices and pushes their Docker images to this registry. In the project directory `<project>/microservices` there is the source for the microservices and a script that builds and pushes the Docker images. Run: ``` ./pushImages.sh ``` and it runs the Gradle task `pushImages` on each microservice project. If exceptions occur when attempting to push the image to the registry make sure you have run the `env.sh` script at the command line. Explore the docker.gradle file for each service to see how the plugin builds, tags and pushes the Docker images. Once the images are pushed verify they are in the registry with the command: ``` curl -X GET $(minikube service -n kube-system registry --url)/v2/_catalog ``` This curl request returns: {"repositories":["authors","biographies","quotes"]} Observe the 3 microservice Docker images in the registry UI: ``` minikube service -n kube-system ui-docker-registry-web ``` ----------------- ## Monitoring ### ### Install Prometheus ### The GitHub project [coreos/prometheus-operator](https://github.com/coreos/prometheus-operator) provides a configured Grafana dashboards and Prometheus settings for many Kubernetes clusters. It also has documented installation procedures that provision your cluster, even a small one on Minikube is an effective monitoring solution. Before continuing ensure the Helm Tiller is configured by running the script mentioned above `helm\helm-init-rbac.sh`. There are two key charts combined to offer a helpful monitoring stack: prometheus-operator and kube-prometheus. To install these charts run this script: ``` cd ../configurations ./prometheus-stack.sh ``` You will see a list of exposed http endpoints for Prometheus, Alertmanager and Grafana. The containers become available after downloaded and initialized. Observe the resources created for this monitoring stack: ``` minikube service list or minikube dashboard ``` ### Start microservices ### Now that microservice images are deployed to the private registry, the services can now start. Start the 3 microservice containers by changing to the `helm` directory and running this install: ``` cd helm helm install charts/microservices --namespace quotes --name ms ``` Next, tell Prometheus there is a new target for metrics to scrape ``` cd configurations kubectl create -n monitoring -f prometheus-targets.yaml ``` ### Exercise microservices ### This project contains three microservices based on Java Spring Boot. They provide JSON based REST APIs and coordinate to return random famous quotes, biographies and authors from the respective services. To view the 3 microservices exposed via their service's NodePorts: ``` minikube service list -n quotes ``` While services are instantly available, the pods may take longer to enter their ready states. ``` curl $(minikube service -n quotes ms-authors --url)/author/random curl $(minikube service -n quotes ms-biographies --url)/bio/random curl $(minikube service -n quotes ms-quotes --url)/quote/random ``` Invoking a get /quotes/full on the ms-quotes service returns a random author's small biography and a random quote from their notable curation. ``` curl $(minikube service -n quotes ms-quotes --url)/quote/full ``` This invokes the 3 microservices in a chained transaction. Each REST request produces a random quote from a random author. Observe the metrics for each service at the relative REST location `/metrics`. ``` curl $(minikube service -n quotes ms-quotes --url)/metrics ``` ### Explore Prometheus ### As you are exercising these images the monitoring data is being collected by Prometheus. Access the three monitoring dashboards with these commands: ``` minikube service -n monitoring kube-prometheus-prometheus minikube service -n monitoring kube-prometheus-alertmanager minikube service -n monitoring kube-prometheus-grafana ``` Activity in the namespace 'quotes' is observed in these interfaces as the services are exercised. Pod replications can be increased and the services can be requested to generate metrics. ``` while true; do curl -w " ms: %{time_total}\n" $(minikube service -n quotes ms-quotes --url)/quote/full; done ``` The class MetricStatics defines the exported metrics such as counters for `demo_http_requests_total`. These changing metrics are observed in Prometheus as the services are requested. Next, increase the scale value for each microservice pod to 3: ``` cd helm helm upgrade --set authors.replicaCount=3 --namespace quotes ms charts/microservices ``` Grafana shows the scaling of the pods. Run the above command line observe the faster response times. Next, increase the latency of the Authors service: ``` cd helm helm upgrade --set authors.container.latency=599 --namespace quotes ms charts/microservices ``` Error metrics can be observed with ``` curl $(minikube service -n quotes ms-quotes --url)/forceError ``` The JVM metrics are present because of the line: `DefaultExports.initialize();` Prometheus scrapes all these metrics with the relative `/metrics` call. If the service exposes a URL for metrics, then it listed in the Prometheus "Targets" catalog. The URL definition is defined in the spring-beans-config.xml Spring Boot file for each microservice project. ------------- ## Sub finem ## Reflect on what you have just explored. You stood up a personal cluster with a private Docker registry. You deployed and started three microservices wrapped in Docker containers. Next, you stood up a monitoring system and observed how the behaviors of the microservices are tracked with Prometheus metrics. Along the way you have seen examples of Spring Boot, Gradle, Helm and the helpful features Kubernetes. My hope is this gives you a deeper appreciation of Kubernetes as a powerful software architecture movement. -- Jonathan Johnson ### Technology stack ### - VirtualBox 5.2.18 - Minikube 0.28.2 (Kubernetes 1.10.0 + Docker) - Kubectl 1.11.2 - Helm 2.10.0 - Prometheus Operator - Kube-Prometheus (Alertmanager + Grafana) - Java 1.8 - Spring Boot 2.0.4-RELEASE - Gradle 4.10 and a few helpful plugins for building and deploying containers ### Project roadmap ### - Add YAML for Alertmanager rules. - Add logging: fluentd, ElasticSearch, Kibana via the EFK addon in Minikube - Add tracing: ZipKin and Sleuth for demonstration of tracing solutions ### Presentation short instructions ### #### Pre-talk setup #### | Step | Command |--------------------------|--------- | Fresh Minikube | `minikube delete` | Initialize | `./minikube-start.sh` | CLI env | `. ./env.sh` | Init Helm | `cd helm && ./helm-init-rbac.sh` | Tiller starts in ~2 min. | `helm status` | Start Docker UI | `helm install charts/docker-registry-web --namespace kube-system --name ui` | Change dir | `cd ../configurations` | Start Monitoring | `./prometheus-stack.sh` | Publish microservices | `cd microservices && ./pushImages` | Start microservices | `helm install charts/microservices --namespace quotes --name ms` | Excersize microserices | `curl $(minikube service -n quotes ms-quotes --url)/quote/full` #### Demonstrate #### | Step | Command |--------------------------|--------- | Start microservices | `cd ../helm && helm install charts/microservices --namespace quotes --name ms` | Extract url | `export SERVICE=$(minikube service -n quotes ms-quotes --url) && echo $SERVICE` | Exercise services | `curl -w " ms: %{time_total}\n" $SERVICE/quote/full` | Loop services | `while true; do curl -w " ms: %{time_total}\n" $SERVICE/quote/full; done` | Loop and watch time | `while true; do curl -w " ms: %{time_total}\n" $SERVICE/quote/full : head -c10; done` Observe in Prometheus the statistic `demo_http_requests_total` growing. ### References ### - Visit the [No Fluff Just Stuff tour](https://www.nofluffjuststuff.com/home/main) and explore many ideas like this. [Monitoring Clusters and Containers](https://archconf.com/conference/clearwater/2017/12/session?id=40272) - [Installing the Prometheus Operator, a CoreOS open source contribution](https://github.com/coreos/prometheus-operator) - [Spring Boot correlationIds](https://blog.jdriven.com/2017/04/correlate-services-logging-spring-boot) - Thank you [Max Kuchin](https://github.com/mkuchin) for the [Docker Registry Web container](https://github.com/mkuchin/docker-registry-web). - This solution is inspired from the [Prometheus installation provided by CoreOS Tectonic.](https://coreos.com/tectonic/docs/latest/tectonic-prometheus-operator/tectonic-monitoring.html) - [Chris Ricci, Solutions Engineer, CoreOS/Red Hat](https://www.linkedin.com/in/christopher-ricci) provides a [helpful demonstration of Prometheus](https://www.brighttalk.com/webcast/14601/293915). Also, a talk on the [advancements in version 2](https://www.brighttalk.com/webcast/14601/289815). - [Get Kubernetes Cluster Metrics with Prometheus in 5 Minutes](https://akomljen.com/get-kubernetes-cluster-metrics-with-prometheus-in-5-minutes/)
1
chidokun/netty-chat-tutorial
Netty Chat tutorial with Protobuf
java jwt-authentication netty protobuf rocksdb
null
1
RevBooyah/Static-mahout-recommender-tutorial
Static Mahout Recommender (as simple as you can get) - Used for a youtube tutorial.
null
Static-mahout-recommender-tutorial ================================== Static Mahout Recommender (as simple as you can get) - Used for a youtube tutorial. http://www.youtube.com/watch?v=yD40rVKUwPI
0
suppergerrie2/ForgeTutorial
Has all of the code for the modding tutorial
minecraft minecraft-forge minecraft-mod minecraft-mod-tutorial suppergerrie2 tutorial
null
1
Mominulcse7/bKash_Integration
Bkash payment integration. Video Tutorial Link:https://www.youtube.com/watch?v=0RVALC-D-1U
bkash-android bkash-payment bkash-payment-gateway bkash-php
Bkash Payment Gateway Integration Android & PHP বিকাশ পেমেন্ট গেটওয়ে ইন্টিগ্রেশন PHP code start from 13:15 Min. Video Tutorial Link: https://www.youtube.com/watch?v=0RVALC-D-1U Source Code: https://github.com/Mominulcse7/bKash_Integration API Files: https://github.com/Mominulcse7/bKash_Integration/blob/master/BkashApiFile.zip Keep API file on your hosting & change the credential. বিকাশ মার্চেন্ট অ্যাকাউন্ট খুলুনঃ https://www.bkash.com/bn/i-want-register/send-registration-request এই লিংক থেকে আইডি খুলুন। তারাই যোগাযোগ করবে। কিভাবে কাজ করবেন? ১। অ্যান্ড্রয়েড অ্যাপে ইন্টিগ্রেশন এর জন্য সোর্স কোড কপি করুন। BkashActivity.java ফাইলে wvBkashPayment.loadUrl("https://www.hosting.com/api/payment.php"); এই লাইনে আপনার হোস্টিং এর লিংক দিন। ২। হোস্টিং এ API ফাইল গুলো রেখে config_live.php ফাই্লটিতে শুধু মাত্র মার্চেন্ট একাউন্ট এর ইউজার আইডি পাসওয়া্ড পরিবর্তন করুন। আর কোনো পরিবর্তন লাগবে না। আরো বিস্তারিত জানতে: https://developer.bka.sh/ বিকাশ ইন্টিগ্রেশন বিকাশ পেমেন্ট গেটওয়ে বিকাশ অ্যান্ড্রয়েড bKash Android bKash php bKash Payment bkash payment gateway Email: mominulcse7@gmail.com Facebook: https://www.facebook.com/Siddiqui.mominul/
1
Tutorials-By-Kaupenjoe/Fabric-Tutorial-1.18.1
Repository for my Fabric 1.18.1 Tutorial Series on YouTube. Playlist link below!
fabric-tutorial fabricmc minecraft minecraft-mod minecraft-tutorial-modding modding tutorial
null
1
TechnoVisionDev/Forge-Modding-Tutorial-1.16
Forge Modding Tutorial For Minecraft 1.15 & 1.16
forge-mod minecraft minecraft-mod
## Minecraft Forge 1.16 - Modding Tutorial The complete source code for my Forge 1.16 modding tutorial series. If you haven't watched my series, [click here](https://www.youtube.com/watch?v=JOTH1eDP99Y&list=PLDhiRTZ_vnoUI3-9z0Zg-I8tTSp3EfOia). Throughout it, you will learn to code your own Minecraft Mod from scratch, starting with basic concepts and working through the entire API! For more information on Forge modding, check out the official documentation [here](https://mcforge.readthedocs.io/en/1.15.x/). ### License <p xmlns:dct="http://purl.org/dc/terms/"> <a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/"> <img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0" /> </a> <br /> To the extent possible under law, <a rel="dct:publisher" href="https://github.com/TechnoVisionDev"> <span property="dct:title">TechnoVision</span></a> has waived all copyright and related or neighboring rights to <span property="dct:title">Forge-Modding-Tutorial-1.16</span>. </p> ### Connect With Me: [<img align="left" alt="TechnoVisionTV | YouTube" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/youtube.svg" />][youtube] [<img align="left" alt="TechnoVisionTV | Twitter" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/twitter.svg" />][twitter] [<img align="left" alt="tomm.peters | Instagram" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/instagram.svg" />][instagram] [<img align="left" alt="TechnoVision | Instagram" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/discord.svg" />][discord] <br /> --- ### 📺 Latest YouTube Videos <!-- YOUTUBE:START --> - [Minecraft 1.16: Modding Tutorial - Natural Entity Spawning (#19)](https://youtu.be/Vcz4Adcu5bY) - [Spigot: Custom Plugin Tutorial - Custom Inventories (#8)](https://youtu.be/dEwv7ay1RCI) - [Minecraft 1.16: Modding Tutorial - Custom Entities (#18)](https://youtu.be/zJkQc2A1PIk) - [Minecraft 1.16: Modding Tutorial - Update Mappings (#17)](https://youtu.be/NtYMgZ0_1PA) <!-- YOUTUBE:END --> --- <img align="left" alt="TechnoVision's Github Stats" src="https://github-readme-stats.vercel.app/api?username=TechnoVisionDev&show_icons=true&hide_border=true" /> [youtube]: https://youtube.com/TechnoVisionTV [twitter]: https://twitter.com/TechnoVisionTV [instagram]: https://instagram.com/tomm.peters [discord]: https://discord.gg/8NV6QYx
1
cubicoder/tutorialmod
Minecraft Forge 1.12.2 modding tutorial.
null
# Cubicoder's Minecraft Forge Tutorials Source Code for [Cubicoder's Minecraft Forge 1.12.2 tutorials](https://cubicoder.github.io/).
0
Zhuinden/realm-book-example
This is an example rewrite of AndroidHive's messy tutorial, accompanying the following article on Realm.
null
# realm-book-example This is a rewrite of a ["Realm tutorial" on Android Hive](http://www.androidhive.info/2016/05/android-working-with-realm-database-replacing-sqlite-core-data). Unfortunately the tutorial is extremely outdated (uses 0.82.1 even though the version 3.5.0 is out!), the code is unstructured (Realm transactions inside a click listener inside a dialog created in a long click listener); and it also misuses Realm quite heavily: - using `begin/commitTransaction()` instead of `executeTransaction()` - calling `refresh()` even though the Realm instance is freshly open - the transactions are all done on the UI thread - the Realm instance is never closed It also uses outdated practices or is just not up-to-date information: - `refresh()` doesn't even exist anymore, and even when it did, in this use-case it was not needed - uses a Migration to pre-populate the database, even though `initialData()` exists now - claims that `null` support for primitives isn't in, even though it was added in 0.83.0 - the code relies on `commitTransaction()` immediately updating the `RealmResults<T>` and calling `adapter.notifyDataSetChanged()` manually, but that's not the case since 0.89.0 which means you need to add a change listener to the `RealmResults<T>` (which `RealmRecyclerViewAdapter` does for you automatically) ------------------------------ So with that in mind, this repository shows how to do these things right: - uses `executeTransactionAsync()` on the UI thread - uses `initialData()` to prepopulate the Realm - uses `RealmManager` class (a bit stub-like because I'll have to make its content not static later) to manage number of open activities - uses retained fragment to count open activity - uses retained fragment to store presenter (oh, it actually has a "presenter" instead of just throwing everything in `OnClickListener`s) - does not use `Application` subclass explicitly because of [Firebase Crash Reporting](https://firebase.google.com/docs/crash/android) for example creating multiple Application instances - uses `RealmRecyclerViewAdapter` with asynchronous query So yeah, this is the interesting class: ``` java public class RealmManager { static Realm realm; static RealmConfiguration realmConfiguration; public static void initializeRealmConfig(Context appContext) { if(realmConfiguration == null) { setRealmConfiguration(new RealmConfiguration.Builder(appContext).initialData(new RealmInitialData()) .deleteRealmIfMigrationNeeded() .build()); } } public static void setRealmConfiguration(RealmConfiguration realmConfiguration) { RealmManager.realmConfiguration = realmConfiguration; Realm.setDefaultConfiguration(realmConfiguration); } private static int activityCount = 0; public static Realm getRealm() { return realm; } public static void incrementCount() { if(activityCount == 0) { if(realm != null) { if(!realm.isClosed()) { realm.close(); realm = null; } } realm = Realm.getDefaultInstance(); } activityCount++; } public static void decrementCount() { activityCount--; if(activityCount <= 0) { activityCount = 0; realm.close(); Realm.compactRealm(realmConfiguration); realm = null; } } } ``` Which has its `RealmConfiguration` initialized in `Activity.onCreate()`, and the Realm instance itself is opened with `RealmManager.incrementCount()` from the retained fragment's constructor. ``` java public class BooksScopeListener extends Fragment { BooksPresenter booksPresenter; public BooksScopeListener() { setRetainInstance(true); RealmManager.incrementCount(); booksPresenter = new BooksPresenter(); } @Override public void onDestroy() { RealmManager.decrementCount(); super.onDestroy(); } public BooksPresenter getPresenter() { return booksPresenter; } } ``` Which is created in the Activity. ``` java @Override protected void onCreate(Bundle savedInstanceState) { RealmManager.initializeRealmConfig(getApplicationContext()); super.onCreate(savedInstanceState); BooksScopeListener fragment = (BooksScopeListener) getSupportFragmentManager().findFragmentByTag("SCOPE_LISTENER"); if(fragment == null) { fragment = new BooksScopeListener(); getSupportFragmentManager().beginTransaction().add(fragment, "SCOPE_LISTENER").commit(); } realm = RealmManager.getRealm(); booksPresenter = fragment.getPresenter(); ``` The adapter is set up like this ``` java recycler.setAdapter(new BooksAdapter(this, realm.where(Book.class).findAllAsync(), booksPresenter)); ``` Where the adapter is a proper `RealmRecyclerViewAdapter`: ``` java public class BooksAdapter extends RealmRecyclerViewAdapter<Book, BooksAdapter.BookViewHolder> { ``` And the writes are from the UI thread to a background thread using `executeTransactionAsync()`, found in the presenter. ``` java Realm realm = RealmManager.getRealm(); realm.executeTransactionAsync(new Realm.Transaction() { ```
1
yesworkflow-org/yw-prototypes
Research prototype with tutorial. Start here to learn about and try YesWorkflow.
null
YesWorkflow Prototypes ====================== The yw-prototypes repository contains early implementations of YesWorkflow, an approach to modeling conventional scripts and programs as scientific workflows. The software is described in these two publications: * T. McPhillips, T. Song, T. Kolisnik, S. Aulenbach, K. Belhajjame, R.K. Bocinsky, Y. Cao, J. Cheney, F. Chirigati, S. Dey, J. Freire, C. Jones, J. Hanken, K.W. Kintigh, T.A. Kohler, D. Koop, J.A. Macklin, P. Missier, M. Schildhauer, C. Schwalm, Y. Wei, M. Bieda, B. Ludäscher (2015). **[YesWorkflow: A User-Oriented, Language-Independent Tool for Recovering Workflow Information from Scripts](http://ijdc.net/index.php/ijdc/article/view/10.1.298)**. *International Journal of Digital Curation* **10**, 298-313. [[PDF](http://ijdc.net/index.php/ijdc/article/download/10.1.298/401)] * T. McPhillips, S. Bowers, K. Belhajjame, B. Ludäscher (2015). **[Retrospective Provenance Without a Runtime Provenance Recorder](https://www.usenix.org/conference/tapp15/workshop-program/presentation/mcphillips)**. *7th USENIX Workshop on the Theory and Practice of Provenance (TaPP'15)*. [[PDF](https://www.usenix.org/system/files/tapp15-mcphillips.pdf)] Overview -------- YesWorkflow aims to provide a number of the benefits of using a scientific workflow management system without having to rewrite scripts and other scientific software. Rather than reimplement code so that it can be executed and managed by a workflow engine, a YesWorkflow user simply adds special YesWorkflow (YW) comments to existing scripts. These comments declare how data is used and results produced, step by step, by the script. The YesWorkflow tools interpret the YW comments and produce graphical output that reveals the stages of computation and the flow of data in the script. ### Example YesWorkflow output The image below was produced by YesWorkflow using the YW comments added to a conventional (non-dataflow oriented) python script ([example.py](https://github.com/yesworkflow-org/yw-prototypes/blob/master/src/main/resources/example.py "example.py")): ![example](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/example_process.png) The green blocks represent stages in the computation performed by the script. The labels on arrows name the input, intermediate, and final data products of the script. #### Introduction to YesWorkflow comments The [example.py](https://github.com/yesworkflow-org/yw-prototypes/blob/master/src/main/resources/example.py "example.py") script includes YesWorkflow comments that precede the `main` function and declare the inputs and outputs of the script as a whole: # @BEGIN main # @PARAM db_pth # @PARAM fmodel # @IN input_mask_file @URI file:{db_pth}/land_water_mask/LandWaterMask_Global_CRUNCEP.nc # @IN input_data_file @URI file:{db_pth}/NEE_first_year.nc # @OUT result_NEE_pdf @URI file:result_NEE.pdf Each YesWorkflow (YW) comment is identified by a keyword that begins with the '`@`' symbol. A `@BEGIN` comment declares the beginning of the script or of a block of computation within the script. (Because YW keywords are case-insensitive, `@BEGIN`, `@begin` and `@Begin` all work equally well.) Each `@BEGIN` tag is paired with an `@END` later in the script, and together these tags delimit the code annotated by other YW comments found in that block. The script `example.py` ends with this YW comment: # @END main The script inputs (`input_data_file` and `input_mask_file`) and outputs (`result_NEE_pdf`) appear in the diagram produced by YesWorkflow because they are declared using the `@IN` and `@OUT` comments shown above. The text following the first two `@URI` keywords indicate that the inputs are read from files at the indicated locations; the `{db_pth}` portion of these file paths indicate that the locations of these files are configurable, with the value of the `db_pth` (a parameter to the script) forming part of the path to the files. Between the `@BEGIN` and `@END` comments for the main block, `example.py` includes four blocks of code also annotated with YW comments. The block of code performing the `fetch_mask` operation (represented as a green box in the diagram above) is: # @BEGIN fetch_mask # @PARAM db_pth # @IN g @AS input_mask_file @URI file:{db_pth}/land_water_mask/LandWaterMask_Global_CRUNCEP.nc # @OUT mask @AS land_water_mask g = netCDF4.Dataset(db_pth+'/land_water_mask/LandWaterMask_Global_CRUNCEP.nc', 'r') mask = g.variables['land_water_mask'] mask = mask[:].swapaxes(0,1) # @END fetch_mask The text following the (optional) `@AS` keyword in an `@IN` or `@OUT` comment provides an *alias* for the actual value or variable (the term immediately following the `@IN` or `@OUT` keyword) that represents that input or output in the script. It is the alias that is displayed in YesWorkflow results and that is used to infer how data flows through the script. Note that in the diagram the arrow labeled `input_mask_file` is connected to the `fetch_mask` block because the alias for the `@IN` comment for `fetch_mask` matches the `@IN` comment on the encompassing `main` block. Note as well that the `@OUT` comment for `fetch_mask` declares the name of the variable (`mask`) used to store the mask in the code. It also provides an alias (`land_water_mask`) that is displayed in the graphical output of YesWorkflow. This alias matches the alias on an `@IN` comment on the downstream `standardize_with_mask` block, and YesWorkflow draws an arrow in the diagram accordingly. YesWorkflow comments of the kind discussed here can be added to any script to highlight how data is processed by that script. YesWorkflow tools discover these comments in the script and produce graphical representations of the script that highlight its workflow-like structure. YesWorkflow can render a number of different views of the workflow structure of a script, including a *process* view (shown above), a *data* view, and a *combined* (*data* + *process*) view. The data view of the example script is shown below. ![example](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/example_data.png) And the combined view is: ![example](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/example_combined.png) Try YesWorkflow in a web browser -------------------------------- The easiest way to experiment with YesWorkflow's basic capabilities is to use the online [YesWorkflow Editor](http://try.yesworkflow.org) at [try.yesworkflow.org](http://try.yesworkflow.org). This web-based application displays YesWorkflow graphical representations of scripts entered into the editor, and updates the graphics in real time as code is edited. Samples of scripts marked up with YesWorkflow annotations are available for experimentation within the editor. Install YesWorkflow on your own computer ---------------------------------------- To take advantage of all of the features of YesWorkflow you will need to install the software on your own computer. ### 1. Check installed version of Java YesWorkflow requires Java (JRE) version 1.7 or higher. To determine the version of java installed on your computer use the -version option to the java command. For example, $ java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) $ Instructions for installing Java may be found at [http://docs.oracle.com/javase/7/docs/webnotes/install/](http://docs.oracle.com/javase/7/docs/webnotes/install/). If you plan to develop with YesWorkflow be sure that you install the JDK. ### 2. Install Graphviz visualization software YesWorkflow produces graphical representations that are rendered using Graphviz or other software capable of processing DOT graph files. You can find instructions for installing Graphviz at [http://graphviz.org/Download.php](http://graphviz.org/Download.php "http://graphviz.org/Download.php"). Make sure that the `dot` command is in your path following installation. ### 3. Download the YesWorkflow jar file The YesWorkflow prototype is distributed as a jar (Java archive) file that can be executed using the `java -jar` command. Download [yesworkflow-0.2.0-jar-with-dependencies.jar](https://github.com/yesworkflow-org/yw-prototypes/releases/download/v0.2.0/yesworkflow-0.2.0-jar-with-dependencies.jar) from the [YesWorkflow 0.2.0 pre-release](https://github.com/yesworkflow-org/yw-prototypes/releases/tag/v0.2.0/) and save the file in a convenient location. YesWorkflow now can be run using the `java -jar` command. Test that the jar works correctly using the `--help` option to display usage information and command line options for YesWorkflow: $ java -jar yesworkflow-0.2.0-jar-with-dependencies.jar --help usage: yw <command> [source file(s)] [-c <name=value>]... Command Function ------- -------- extract Identify YW comments in script source file(s) model Build workflow model from identified YW comments graph Graphically render workflow model of script Option Description ------ ----------- -c, --config <name=value> Assign value to configuration option -h, --help Display this help Configuration Name Value ------------------ ----- extract.comment Single-line comment delimiter in source files extract.factsfile File for storing prolog facts about scripts extract.language Language used in source files extract.listfile File for storing list of extracted comments extract.skeletonfile File for storing YW-markup skeleton of source files extract.sources List of source files to analyze model.factsfile File for storing prolog facts describing model model.workflow Name of top-level workflow in model graph.datalabel Info to display in data nodes: NAME, URI, or BOTH graph.dotcomments Include comments in dot file (ON or OFF) graph.dotfile Name of GraphViz DOT file to write graph to graph.edgelabels SHOW or HIDE labels on edges in process and data views graph.layout Direction of graph layout: TB, LR, RL, or BT graph.params SHOW, HIDE, or REDUCE visibility of parameters graph.portlayout Layout mode for workflow ports: HIDE, RELAX or GROUP graph.subworkflow Qualified name of (sub)workflow to render graph.title Graph title (defaults to workflow name) graph.titleposition Where to place graph title: TOP, BOTTOM, or HIDE graph.view Workflow view to render: PROCESS, DATA or COMBINED graph.workflowbox SHOW or HIDE box around nodes internal to workflow Examples -------- $ yw extract myscript -c extract.comment='#' -c extract.listfile=comments.txt $ yw graph myscript.py -config graph.view=combined -config graph.datalabel=uri $ yw graph scriptA.py scriptB.py > wf.gv; dot -Tpdf wf.gv -o wf.pdf; open wf.pdf ### 4. Define a short command for running YesWorkflow at the prompt If you are running YesWorkflow on an Apple OSX or Linux system (or use Git Bash or Cygwin on Windows), you may define a bash alias to simplify running YesWorkflow at the command line. On Windows platforms you similarly may define a macro for running YesWorkflow at the prompt. For example, if you have saved `yesworkflow-0.2.0-jar-with-dependencies.jar` to the bin subdirectory of your home directory, the following command will create a bash alias for running YesWorkflow simply by typing `yw`: alias yw='java -jar ~/bin/yesworkflow-0.2.0-jar-with-dependencies.jar' On Windows the command to create the `yw` macro is: doskey yw=java -jar %USERPROFILE%\bin\yesworkflow-0.2.0-jar-with-dependencies.jar $* The command to display YesWorkflow command line options is now simply: $ yw --help ### 5. Run YesWorkflow on the example python script The [`example.py`](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/example.py "example.py") script is useful for demonstrating YesWorkflow capabilities. You can download it to your computer [here](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/example.py "example.py"). In the examples below it is assumed that `example.py` is in your current working directory. #### Extracting YW comment lines First, use the YesWorkflow `extract` command and `-c extract.listfile` option to list the YW commands found in the script: $ yw extract example.py -c extract.listfile @BEGIN main @PARAM db_pth @PARAM fmodel @IN input_mask_file @URI file:{db_pth}/land_water_mask/LandWaterMask_Global_CRUNCEP.nc @IN input_data_file @URI file:{db_pth}/NEE_first_year.nc @OUT result_NEE_pdf @URI file:result_NEE.pdf @BEGIN fetch_mask @PARAM db_pth @IN g @AS input_mask_file @URI file:{db_pth}/land_water_mask/LandWaterMask_Global_CRUNCEP.nc @OUT mask @AS land_water_mask @END fetch_mask @BEGIN load_data @PARAM db_pth @IN input_data_file @URI file:{db_pth}/NEE_first_year.nc @OUT data @AS NEE_data @END load_data @BEGIN standardize_with_mask @IN data @AS NEE_data @IN mask @AS land_water_mask @OUT data @AS standardized_NEE_data @END standardize_with_mask @BEGIN simple_diagnose @PARAM fmodel @IN data @AS standardized_NEE_data @OUT pp @AS result_NEE_pdf @URI file:result_NEE.pdf @END simple_diagnose @END main $ This command is useful for confirming that YesWorkflow is finding the comments that you have added to a script and is not confused by other comments and code in the script. #### Creating a workflow graph for a script Next, use the `graph` command to produce a graphical representations of the script based on the YW comments it contains. YesWorkflow natively outputs GraphViz's DOT format (file extension `.gv`). If you don't provide a file name for storing the DOT output it will be sent to the terminal: $ yw graph example.py digraph Workflow { rankdir=LR fontname=Courier; fontsize=18; labelloc=t label=main subgraph cluster_workflow_box_outer { label=""; color=black; penwidth=2 subgraph cluster_workflow_box_inner { label=""; color=white node[shape=box style=filled fillcolor="#CCFFCC" peripheries=1 fontname=Courier] fetch_mask load_data standardize_with_mask simple_diagnose edge[fontname=Helvetica] load_data -> standardize_with_mask [label=NEE_data] fetch_mask -> standardize_with_mask [label=land_water_mask] -> simple_diagnose [label=standardized_NEE_data] }} subgraph cluster_input_ports_group_outer { label=""; color=white subgraph cluster_input_ports_group_inner { label=""; color=white node[shape=circle style=filled fillcolor="#FFFFFF" peripheries=1 fontname=Courier width=0.2] input_mask_file_input_port [label=""] input_data_file_input_port [label=""] }} subgraph cluster_output_ports_group_outer { label=""; color=white subgraph cluster_output_ports_group_inner { label=""; color=white node[shape=circle style=filled fillcolor="#FFFFFF" peripheries=1 fontname=Courier width=0.2] result_NEE_pdf_output_port [label=""] }} edge[fontname=Helvetica] input_mask_file_input_port -> fetch_mask [label=input_mask_file] input_data_file_input_port -> load_data [label=input_data_file] edge[fontname=Helvetica] simple_diagnose -> result_NEE_pdf_output_port [label=result_NEE_pdf] } You can save the DOT output to a file, render it as PDF file using Graphviz's `dot` command, then open the PDF file to view the diagram: $ yw graph example.py > example.gv $ dot -Tpdf example.gv -o example.pdf $ open example.pdf On Windows platforms the last line above should be replaced with: $ start example.pdf Alternatively, you can pipe `yw` into `dot` and open the graphics file immediately (here using png rather than PDF). In the case of bash running on Unix platforms: $ yw graph example.py | dot -Tpng -o example.png && open example.png And on Windows platforms: $ yw graph example.py | dot -Tpng -o example.png && start example.png ### 6. Mark up and analyze your own script You should now be able to add YW comments to your own data processing script and analyze your script using the YesWorkflow prototype. #### Delimit your script with `@begin` and `@end` comments The YesWorkflow prototype assumes that the code for the entire script to be analyzed is bracketed by a pair of `@begin` and `@end` comments. The YW comments may appear anywhere comments are allowed by the scripting language you are using. For example, a script written in a language that uses the # character to start comments might look like the following # @begin MyScript script statement script statement script statement # a non-YW comment script statement script statement script statement # @end MyScript Note that comments that do not contain YW keywords are ignored by YesWorkflow. `@begin` and `@end` keywords both should be followed by the name of the block of code they bracket (in this case, the script as a whole), and these names should match for each `@begin` and `@end` pair. This convention makes it easier to identify incorrectly paired `@begin` and `@end` keywords in the script. #### Use `@in` and `@out` comments to declare the data consumed and produced in the script The next step in marking up a script with YW comments is to declare the inputs and outputs of the script. These do not need to be actual command-line options to your script or files read from or output to disk by the script. The comments you add simply declare that the script accepts these inputs in some way, and produces the indicated outputs somehow. This is done by adding `@in` and `@out` comments following the `@begin` comment for your script. For example: # @begin MyScript # @in x # @in y # @out d script statement script statement script statement # a non-YW comment script statement script statement script statement # @end MyScript The `@in` and `@out` comments above indicate that the script takes two inputs, `x` and `y`, and produces output `d`. The names of these inputs and outputs (multiple inputs and outputs are allowed) are expected to correspond to the names of variables that store these input and output values at some point in the script (although this is not enforced by the prototype). Declaring the names of the relevant variables is meant to make it easier for others to find the actual input and output operations in your script. Multiple YW comments can be placed on the same line. For example, the example below is equivalent to the one above: # @begin MyScript @in x @in y @out d script statement script statement script statement # a non-YW comment script statement script statement script statement # @end MyScript Because variable names are often kept relatively short in scripts, YesWorkflow allows you to associate a more verbose alias for each input and output using the `@as` keyword. For example: # @begin MyScript # @in x @as XCoordinate # @in y @as YCoordinate # @out d @as DistanceFromOrigin script statement script statement script statement # a non-YW comment script statement script statement script statement # @end MyScript Analysis performed by YesWorkflow and the outputs it produces use these aliases if present, and the unaliased names otherwise. #### Declare computational code blocks within your script The YesWorkflow prototype assumes that a script has a single, top-level block of code delimited by the `@begin` and `@end` statements described above, and additionally one or more marked up computational blocks nested within this top-level block. You can use these nested blocks to describe the computational steps in your script in dataflow terms. For example, we can declare two computational code blocks within MyScript: # @begin MyScript # @in x @as XCoordinate # @in y @as YCoordinate # @out d @as DistanceFromOrigin # get input x somehow # get input y somehow # @begin SquareCoordinates # @in x @as XCoordinate # @in y @as YCoordinate # @out xx @as XSquared # @out yy @as YSquared script statement script statement # @end SquareCoordinates # @begin SumSquares # @in xx @as XSquared # @in yy @as YSquared # @out s @as SumOfSquares script statement script statement # @end SumSquares # @begin TakeSquareRoot # @in s @as SumOfSquares # @out d @as DistanceFromOrigin script statement script statement # @end TakeSquareRoot # output d somehow # @end MyScript The `@begin`, `@end`, `@in`, `@out`, and `@as` keywords have the same meaning for computational blocks within the script as for the script as a whole. #### Analyze your script with YesWorkflow tool At this point you may analyze your script and render it graphically, just as we did above for `example.py`. If your script is called `MyScript.py` then the command (for Unix platforms): $ yw graph MyScript.py | dot -Tpng -o MyScript.png && open MyScript.png or (for Windows platforms): $ yw graph MyScript.py | dot -Tpng -o MyScript.png && start MyScript.png will render your script as a dataflow program and illustrate how data flows from script inputs, into successive computational blocks, and finally to script outputs. For the example above, YesWorkflow produces this: ![](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/MyScript.png) Notice that the `@in` and `@out` comments for MyScript (the script as a whole) correspond to the small, empty circles at the left and right sides of the figure, respectively. The circles on the left are connected by arrows to the SquareCoordinates block. These arrows indicate dataflow into the script and are labeled with the aliases for the script `@in` comments, which in turn match the `@in` aliases for the SquareCoordinates block. Similarly, the circle on the far right corresponds to the script `@out` comment, and is connected by an incoming arrow from the TakeSquareRoot block because the MyScript `@out` comment and TakeSquareRoot `@out` comment have matching aliases. This right-most arrow represents flow of data out of the script. The remaining arrows are drawn between blocks and represent flow of data between computational blocks. They result from matching aliases from `@out` comments on upstream blocks with aliases for `@in` comments on downstream blocks. #### Override the comment character used in your script YesWorkflow infers the programming language employed in a script by inspecting the source file extension. Currently the following file extensions and associated comment syntaxes are recognized. Block comments may span multiple consecutive lines. Language | Extension | Single-line comments | Block comments ----------|----------|----------------------|-------------------- bash | .sh | `# a comment` | C | .c, .h | `// a comment` | `/* a comment */` C++ | .cpp | `// a comment` | `/* a comment */` Java | .java | `// a comment` | `/* a comment */` MATLAB | .m | `% a comment` | `%{ a comment %}` or `... a comment ...` python | .py | `# a comment` | `''' a comment '''` or `""" a comment """` R | .R | `# a comment` | SAS | .sas | | `* a comment ;` or `/* a comment */` Support for single-line comments started with a `#` character is assumed if the extension is not one of the above, if the file name has no extension, or if the script code is piped to YesWorkflow via the standard input stream. To manually specify a single-line comment character use the `-c extract.comment=` configuration option to provide the comment character in quotes. For example, to pipe a MATLAB program to YesWorkflow and use the correct comment character you may use the following command on Unix platforms: cat myprogram.m | yw graph -c extract.comment='%' > myprogram.gv And on Windows: yw graph -c extract.comment='%' < myprogram.m > myprogram.gv #### Store command-line options in a yw.properties file Configutration options for YesWorkflow may be stored in a file named `yw.properties` in the directory in which you run `yw`. Specify one option per line using a `name = value` syntax similar that used on the command line (in configuration files, spaces and tabs are allowed on either side of the `=` sign). To try this out, create a `yw.properties` file with the following content in the directory containing `MyScript.py`: # extract configuration extract.sources = MyScript.py extract.listfile = listing.txt extract.comment = # # graph configuration graph.view = combined graph.layout = tb graph.dotfile = combined.gv graph.workflowbox = show graph.portlayout = relax You may now create the graph rendering of your script using the above options simply by typing: $ yw graph From top to bottom, the options specified in this `yw.properties` file cause YesWorkflow to (1) extract YW comments from `MyScript.py`, (2) leave the list of extracted comments in `listing.txt`, (3) interpret the `#` as the source code comment delimiter (this causes YesWorkflow to ignore comments in Python docstrings in this case), (4) render a view of the workflow graph that combines the process and data views in single graph (see figure below), (5) arrange the nodes in the graph from top to bottom, (6) write the DOT output to `combined.gv`, (7) draw a box around the nodes in the workflow, and (8) allow Graphviz to place the input and output nodes in locations that minimize the complexity of the graph. The graph resulting from running YesWorkflow with these options looks like this: ![](https://raw.githubusercontent.com/yesworkflow-org/yw-prototypes/master/src/main/resources/MyScript_combined.png) Type `yw --help` to see available options and valid values for each. Instructions for developers --------------------------- #### JDK and Maven configuration The Java prototype is built using Maven 3. Before building YesWorkflow confirm that the `mvn` command is in your path, that your version of Maven is at least 3.0.5, and that a JDK version 1.7 (or higher) is found by Maven: $ mvn --version Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T13:58:10-07:00) Maven home: c:\Program Files\apache-maven-3.2.3 Java version: 1.7.0_67, vendor: Oracle Corporation Java home: c:\Program Files\Java\jdk1.7.0_67\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" $ JDK 7 and Maven 3 downloads and detailed installation instructions can be found at the following links: - [Instructions for installing and configuring JDK 1.7](http://docs.oracle.com/javase/7/docs/webnotes/install/) (Oracle Java Documentation) - [Instructions for installing and configuring Maven 3](http://maven.apache.org/download.cgi) (Apache Maven Project) #### Project directory layout YesWorkflow adopts the default organization of source code, resources, and tests as defined by Maven. See [maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html](http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) for more information. The most important directories are listed below: Directory | Description ---------------------|----------- src/main/java | Source code to be built and packaged for distribution. src/main/resources | Resource files to be packaged with production code. src/test/java | Source code for unit and functional tests. Not included in packaged distributions. src/test/resources | Resource files available to tests. Not included in packaged distributions. target | Destination directory for packaged distributions (jar files) built by maven. target/classes | Compiled java classes for source code found under src/main/java. target/test-classes | Compiled java classes for test code found under src/test/java. target/dependency | Automatically resolved and downloaded dependencies (jars) that will be included in the standalone distribution. target/site/apidocs/ | Local build of Javadoc documentation. #### Building and testing with maven YesWorkflow can be built and tested from the command line using the following commands: Maven command | Description --------------|------------ mvn clean | Delete the target directory including all compiled classes. mvn compile | Download required dependencies and compile source code in src/main/java. Only those source files changes since the last compilation or clean are built. mvn test | Compile the classes in src/test/java and run all tests found therein. Peforms *mvn compile* first. mvn package | Package the compiled classes in target/classes and files found in src/main/resources in two jar files, **yesworkflow-0.2-SNAPSHOT.jar** and **yesworkflow-0.2-SNAPSHOT-jar-with-dependencies.jar**. The latter also contains all jar dependencies. Performs *mvn compile* and *mvn test* first, and will not perform packaging step if any tests fail. Use the `-DskipTests` option to bypass tests. mvn javadoc:javadoc | Build Javadoc documentation. The `mvn package` command also builds Javadoc. #### Continuous integration with Bamboo All code is built and tests run automatically on a build server at NCSA whenever changes are committed to directories used by maven. Please confirm that the automated build and tests succeed after committing changes to code or resource files (it may take up to two minutes for a commit-triggered build to start). Functional tests depend on the scripts in src/main/resources and are likely to fail if not updated following changes to these scripts. Site | Url ----------------------| --- Build history | https://opensource.ncsa.illinois.edu/bamboo/browse/KURATOR-YW Last build | https://opensource.ncsa.illinois.edu/bamboo/browse/KURATOR-YW/latest Last successful build | https://opensource.ncsa.illinois.edu/bamboo/browse/KURATOR-YW/latestSuccessful The link to the latest successful build is useful for obtaining the most recently built jar file without building it yourself. Follow the link to the [last successful build](https://opensource.ncsa.illinois.edu/bamboo/browse/KURATOR-YW/latestSuccessful "last successful build"), click the Artifacts tab, then download the executable jar.
0
meiry/multiplayer_cocos2dx-js_using_netty_websockets
Source code for the tutorial building simple multiplayercocos2dx-js using netty and websockets
null
# multiplayer_cocos2dx-js_using_netty_websockets Source code for the tutorial building simple multiplayercocos2dx-js using netty and websockets to see full tutorial please visit: https://gamedevcraft.blogspot.com/
1
obaro/SharedElementTransitions
A tutorial on using shared element transitions in both activities and fragments. Published on AndroidAuthority.com
null
null
1
JD-Software/JDeSurvey
JD eSurvey is an open source enterprise survey web application written in Java and based on the Spring Framework. Check out the tutorial videos to find out more about the application features.
null
```diff - ⚠️ JDESURVEY IS NO LONGER BEING MAINTAINED BY JD SOFTWARE ⚠️ ``` #[![JDeSurvey Logo](https://github.com/JD-Software/JDeSurvey/blob/master/images/Logo.png)](http://www.jdsoft.com/jd-esurvey.html) ### Data Gathering Made Easy [JD eSurvey](https://www.jdsoft.com/jd-esurvey.html) is an open-source web application developed by [JD Software](https://www.jdsoft.com) for the creation, collection, and analysis of surveys. Written in Java and built using the Spring Framework and Hibernate ORM, JD eSurvey is a powerful web application. It has a range of features from branching and randomization, to piping for survey control, to a long list of question types, including video questions. ![sreen shot](https://github.com/JD-Software/JDeSurvey/blob/master/images/survey-creation.png) The interface allows users to produce professional-looking surveys easily. With just a few clicks, you can gather comprehensive survey data in an easy to read format with graphs and statistics for analysis purposes. The application has the ability to customize the look and feel of surveys, send email invitations, and validate responses. It Also comes with reliable security features based on Spring Security. ##### Please see our [GitHub Wiki](https://github.com/JD-Software/JDeSurvey/wiki) for more information. #### [Can't wait to try it out, then click here](https://github.com/JD-Software/JDeSurvey/wiki/Download-and-Installation) #### [Features](https://github.com/JD-Software/JDeSurvey/wiki/Features) #### [Video Tutorials](https://github.com/JD-Software/JDeSurvey/wiki/Video%20Tutorials) See all of our videos for JD eSurvey here: [JDsoft.com/JDeSurvey](https://www.jdsoft.com/jd-esurvey.html) ### Creating and Publishing Surveys <a href="http://vimeo.com/61911800" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/creating-and-publishing.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> In this [video](http://vimeo.com/61911800) tutorial we guide you through the basics on how to create surveys from scratch using JD eSurvey. We show you the architecture of surveys with JD eSurvey and examples of some of the question types. After going through the steps in this video you will be able to competently develop and deliver your own surveys with ease. ### Accessing and Filling Out Surveys <a href="http://vimeo.com/61911795" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/acessing-and-filling-out-surveys.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> This [video](http://vimeo.com/61911795) is a continuation of the previous one on creating and publishing surveys. In this video we show you how simple it is to access and fill out surveys. We use the survey created in the first video for the purposes of this demonstration. ### Importing and Exporting Surveys <a href="http://vimeo.com/61912149" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/importing-and-exporting-surveys.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> Learn how to export surveys in this [video](http://vimeo.com/61912149) and then later import them to the same or different environments. You will see that by exporting surveys provides an option of keeping backup copies of them. Also, once surveys have been imported any potential changes or updates that need to take place are possible before publishing them. ### Survey Statistics <a href="http://vimeo.com/61912284" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/survey-statistics.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> Get a quick glimpse of the statistics feature of JD eSurvey in this [video](http://vimeo.com/61912284) . We give you an overview of collecting survey statistics and the available options for exporting the raw data to Excel, comma delimited, and SPSS file formats. We also show you how statistical information can be downloaded as PDF files. ### Branching and Skipping <a href="http://vimeo.com/61911798" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/branching-and-skipping.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> This [video](http://vimeo.com/61911798) presents to you JD eSurvey's powerful branching feature. Learn how to direct participants to different pages based upon their responses to specific questions. This allows for participants to save some time by not having to view questions that do not pertain to them. After watching this video you will be able to gain more control of the survey process. ### Randomization of Questions and Options <a href="http://vimeo.com/61912521" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/randomization-of-questions-and-options.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> Worried about participants memorizing survey content? Concerned about collecting inaccurate survey data due to biased responses? This [video](http://vimeo.com/61912521) demonstrates how you can use the randomization feature of JD eSurvey to help prevent these issues from occurring. Watch how randomizing both questions and answer options can deliver more diversified surveys. ### Piping of Answers <a href="http://vimeo.com/61912285" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/piping-of-answers.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> This tutorial shows you how to create questions using previous responses into the questions text. With the answer piping feature it allows you to have more precision over the question text to be displayed for participants. This [video](http://vimeo.com/61912285) explains how you can take advantage of this great feature. ### Survey Email Invitations <a href="http://vimeo.com/61911801" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/survey-email-invitations.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> This [video](http://vimeo.com/61911801) shows how you can send survey invitations to a group of participants via email. Keep track of the number of invitations sent, to whom they were sent to, and determine which ones were opened by the recipient. ### Survey Themes <a href="http://vimeo.com/61912286" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/survey-themes.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> Check out some of the different theme options JD eSurvey has to offer by watching this [video](http://vimeo.com/61912286). In this video we display to you all of the themes you may choose to change the look of surveys. Instead of using the same look of surveys over and over again, pick a different theme to change it up. ### Logos and Images <a href="http://vimeo.com/61912283" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/adding-logos.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> Watch this [video](http://vimeo.com/61912283) to see how you can personalize your surveys by adding pictures and company logos. Insert pictures to give surveys more character. Insert company logos to help participants identify surveys associated with your organization. With just a few simple click you will be able to customize surveys within a matter of seconds. ### Installing JD eSurvey from a WAR file using Windows, Tomcat and MySQL <a href="http://vimeo.com/97945474" target="_blank"><img src="https://github.com/JD-Software/JD_eSurvey/blob/master/images/Windows-instalation-with-tomcat-and-mysql.png" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a> Watch this [video](http://vimeo.com/97945474) to see how to install and run a pre-compiled demonstration version of the application on a Windows machine using Apache Tomcat and MySQL. ####[FAQs](https://github.com/JD-Software/JDeSurvey/wiki/FAQs) #### [License](http://www.gnu.org/licenses/agpl.html) JD eSurvey Copyright (C) 2014 JD Software, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see (http://www.gnu.org/licenses/).
1
SIMMORSAL/ViewDrag
A tutorial on how to move a view on UI by dragging it with your finger.
tutorial
# View Drag Test A tutorial on how to move a view on UI by dragging it with your finger. ![drag](https://user-images.githubusercontent.com/24822099/33432273-97733820-d5ec-11e7-82f2-653d44e190e4.gif) Demo APK: [ViewDrag.zip](https://github.com/SIMMORSAL/ViewDrag/files/1517887/ViewDrag.zip) ## Introduction Welcome. In this tutorial I will teach you how to create a sliding layout, so it would move out of UI when you swipe it upward, and the layout behind it will come out of darkness. All we'll cover here will be creating the GIF you see, but once you learn how, you will be able to create some neat and awesome stuff with the knowledge. ## Before we code Start a new project, head to 'res/values/styles' * change `<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">` to `<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">` so the Toolbar would hide. * change `<item name="colorPrimaryDark">@color/colorPrimaryDark</item>` to `<item name="colorPrimaryDark">#E91E63</item>` to change the color of the status bar. ## Lets get to it... We'll start by creating the layout, then move to java. ### 1. Creating the layout This is a semi-collapsed look at our layout. ```XML <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- =================== The views behind the draggable layout --> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent".../> <!-- The views behind the draggable layout =================== --> <!-- ========================== the dragging and related views --> <ImageView android:id="@+id/imgDarkOverlay" android:layout_width="match_parent" android:layout_height="match_parent".../> <LinearLayout android:id="@+id/linDraggable" android:layout_width="match_parent" android:layout_height="match_parent".../> <View android:id="@+id/viewTouchListener" android:layout_width="match_parent" android:layout_height="match_parent".../> <!-- the dragging and related views ========================== --> </FrameLayout> ``` Our layout has 4 main Views inside it, which are divided into two groups. The first group includes a `RelativeLayout`, which holds all the views behind our draggableLayout. Inside it there is a GIF and a Button. The second group includes an `ImageView`, a `LinearLayout`, and a `View`. The `LinearLayout` named `linDraggable` is the layout that will be dragged. The `View` named `viewTouchListener` is a transparent but clickable View, that is responsible for registering the user's clicks. The `ImageView` named `imgDarkOverlay` with a semi-transparent black background, is the darkness behind the `linDraggable`! [Click here to see the full layout code](https://gist.github.com/SIMMORSAL/1e371d9500f2fbddb6d31f4b39ad9b03) ### 2. Writing the Java code Before we start with writing our java code I should explain that for the sake of keeping our code clean, we create multiple methods in our `MainActivity` class, each responsible for something, and we call them from the `onCreate()` method. For example we initialize our UI components like this: ```java LinearLayout linDraggable; View viewTouchListener; ImageView imgDarkOverlay; Button btnShowLayout; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); initializer(); } private void initializer() { linDraggable = findViewById(R.id.linDraggable); viewTouchListener = findViewById(R.id.viewTouchListener); imgDarkOverlay = findViewById(R.id.imgDarkOverlay); btnShowLayout = findViewById(R.id.btnShowLayout); } ``` Then we add these variables just above the `onCreate()` method: ```java int linHeight; int startX, startY; int deltaX, deltaY; int animationDuration = 400; ``` Now we create another method in our class named `getHeight` and call it from `onCreate()` method: ```java private void getHeight() { linDraggable.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { linDraggable.getViewTreeObserver().removeOnGlobalLayoutListener(this); linHeight = linDraggable.getHeight(); listenForDrag(); } }); } ``` In this method we wait for the `linDraggable` to get drawn on the UI so we can get it's height value and store it in `linHeight`. After we get the height, we start listening for touches on the UI through `listenForDrag()` method: ```java private void listenForDrag() { // we must have a stationary View for listening to clicks, otherwise // the data we'll get wont be correct viewTouchListener.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: startX = (int) event.getX(); startY = (int) event.getY(); break; case MotionEvent.ACTION_MOVE: performCalculations(event); break; case MotionEvent.ACTION_UP: checkWhatShouldHappen(); } return true; } }); } ``` In this method, we listen for the touches being registered on `viewTouchListener`, and as you can see, they are divided to three parts. * `case MotionEvent.ACTION_DOWN:` which runs when the user puts finger on the `viewTouchListener`. All we do here is getting the start position of the touch. * `case MotionEvent.ACTION_MOVE:` which runs when user drags finger on the view. In here we call `performCalculations()` and pass the touch `event` through it which calculates how much the finger has been dragged on the view, and where our `linDraggable` should be. * `case MotionEvent.ACTION_UP:` which runs when the user lifts finger off the view. In here we call `checkWhatShouldHappen()` (don't judge me, naming is hard) which decides how the elements on the UI should lay out, based on the amount of drag on the screen ##### Doing the magic The `performCalculations()` method is where the magic happens: ```java private void performCalculations(MotionEvent event) { deltaX = (int) (startX - event.getX()); deltaY = (int) (startY - event.getY()); float factorFromZero = (float) (deltaY) / linHeight; float factorFromOne = (float) (linHeight - deltaY) / linHeight; if (deltaY >= 0) { linDraggable.setTranslationY(-(int) (deltaY * ((float) 4 / 5))); imgDarkOverlay.setAlpha(factorFromOne); } } ``` This method executes whenever user swipes on the screen. even if the swipe amount is as small as 1 pixel. First we calculate the difference between start touch position (`startY` and `X`) and the amount of touch movement, and store them inside `deltaX` and `deltaY`. Then we calculate "From zero to one, how much the layout has been moved" and "From one to zero, how much the layout has been moved" and store them inside `factorFromZero` and `factorFromOne`. In this project we wont use `factorFromZero`, but it can be very useful inside the projects you may build upon this. (Note that the values for both variables may exceed 1 and deceed 0) Now that we have enough data, we move(translate) our `linDraggable`. As we want our `linDraggable` to go upwards, we check if `deltaY` is bigger or equal to `0`. Now to move the `linDraggable`, all we have to do is: `linDraggable.setTranslationY(-deltaY);` but as you have noticed, instead of `-deltaY`, i have put `-(int) (deltaY * ((float) 4 / 5))`. This decreases the value of `deltaY` a little, and gives a feeling of `linDraggable` being a little heavy when user drags it up. It is optional and you may not want to use it in your own projects based on the view you want to move. Then we decrease the `alpha` value of `imgDarkOverlay`, so the views in the back would brighten as we drag `linDraggable` up. For this all we need to do is `imgDarkOverlay.setAlpha(factorFromOne);`. That's it! ##### Laying out components in proper location Now we should see where the user lifts up finger, and decide what should happen to `linDraggable`, `imgDarkOverlay` and `viewTouchListener`. And by that I mean: IF, the user has dragged a total of one third of `linDraggable`'s height, then after user lifts finger, `linDraggable` should go all the way up until its out of the view, `imgDarkOverlay` should completely fade out, and `viewTouchListener`'s visibility should be set to `View.GONE` so it wouldn't consume any other touches registered on the UI, and any view behind it would be interactive. ELSE, `linDraggable` should come back to it's original location, `imgDarkOverlay` should get it's original alpha of 1. and nothing would happen to `viewTouchListener`. We use `ViewAnimator` to animate any changes we want to make, and apply them in `checkWhatShouldHappen()` method: ```java private void checkWhatShouldHappen() { if (deltaY > linHeight / 3) { linDraggable.animate().translationY(-linHeight).setDuration(animationDuration).withLayer(); imgDarkOverlay.animate().alpha(0).setDuration(animationDuration).withEndAction(new Runnable() { @Override public void run() { runFinishingCode(); } }); } else { linDraggable.animate().translationY(0).setDuration(animationDuration).withLayer(); imgDarkOverlay.animate().alpha(1).setDuration(animationDuration).withLayer(); } } ``` In the code above, if user has dragged the `linDraggable` enough: * we will set `linDraggable`'s `translationY` to `-linHeight` which is the necessary amount it has to go to completely move out of screen. * we execute `imgDarkAnimation` with `.withEndAction()` so we know when the animation has finished, so we can `runFinishingCode()`: ```java private void runFinishingCode() { viewTouchListener.setVisibility(View.GONE); linDraggable.setVisibility(View.GONE); imgDarkOverlay.setVisibility(View.GONE); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().setStatusBarColor(Color.parseColor("#000000")); } } ``` ###### That's it! I have optionally added a button to my layout that would reveal the `linDraggable` again, which resides in a method named `onClicks()`, and is called in `onCreate()`: ```java private void onClicks() { btnShowLayout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { viewTouchListener.setVisibility(View.VISIBLE); linDraggable.setVisibility(View.VISIBLE); imgDarkOverlay.setVisibility(View.VISIBLE); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().setStatusBarColor(Color.parseColor("#E91E63")); } linDraggable.animate().translationY(0).setDuration(animationDuration).withLayer(); imgDarkOverlay.animate().alpha(1).setDuration(animationDuration).withLayer(); } }); } ``` [View the full Java code here (Documented)](https://gist.github.com/b393ad1eb44ebc0fe55151c0e594fd4f) #### I hope this proves useful to you.
1
lankydan/spring-data-cassandra
Spring Data Cassandra tutorial - containing branches with different topics that are used within my blog posts
null
null
1
weiwosuoai/spring-boot-tutorial
:green_apple: 犬小哈的 《Spring Boot 2.x 学习实战教程》,( A Tutorial to Spring Boot 2.x ) 带您玩转 Spring Boot 2.x 教程 !!!
null
# Spring Boot 2.x 实战学习教程 :green_apple: 犬小哈的 《Spring 2.x 学习实战教程》,( A Tutorial to Spring Boot 2.x ) 带您玩转 Spring Boot 2.x 教程 !!! --- <p align="center"> ★★★ 如果此教程有帮助到您, <b>Star</b> 一下吧, 您还可以访问 :fire: <a href="https://www.exception.site/springboot">《Spring 2.x 学习实战教程》</a> :fire: 来阅读它. 谢谢啦! ★★★ </p> --- // 内容持续更新中哟,第一时间发布在个人网站 <a href="https://www.exception.site">www.exception.site</a> 上,请保持关注哟 ...... ## 教程目录 ### 基础篇 - [入门篇](https://www.exception.site/springboot/spring-boot-tutorial) ### 快速整合篇 - [Spring Boot 整合邮件发送功能](https://www.exception.site/springboot/spring-boots-send-mail) - [Spring Boot 整合集成消息中间件 Kafka](https://www.exception.site/springboot/spring-boot2-kafka) - [Spring Boot 7 行代码快速生成 Excel 文件(演示代码在测试包内)](https://www.exception.site/essay/how-to-create-excel-by-seven-line-code) - [Spring Boot 如何通过 Freemark 优雅地生成那些花里胡哨的复杂样式 Excel 文件?(演示代码在测试包内)](https://www.exception.site/essay/how-to-create-complex-style-excel-with-freemark) ### 进阶篇 - [Spring Boot 自定义注解,AOP 切面统一打印出入参请求日志](https://www.exception.site/springboot/spring-boot-aop-web-request) - [Spring Boot 自定义 Starter 组件](https://www.exception.site/springboot/spring-boot-custom-starter) ## 小哈的微信公众号,欢迎关注 关注即可免费无套路领取 100G 小哈整理的各种 Java 学习资料哟,祝您学习愉快! ![](https://exception-image-bucket.oss-cn-hangzhou.aliyuncs.com/155634562788477)
1
Java-aid/Hackerrank-Solutions
hackerrank solutions github | hackerrank all solutions | hackerrank solutions for java | hackerrank video tutorial | hackerrank cracking the coding interview solutions | hackerrank data structures | hackerrank solutions algorithms | hackerrank challenge | hackerrank coding challenge | hackerrank algorithms solutions github| hackerrank problem solving | hackerrank programs solutions | JAVAAID |all hackerrank solutions | Coding Interview Preparation
30-days-of-code algorithm-challenges algorithms-and-data-structures coding-challenges cracking-the-coding-interview data-structures-and-algorithms hackerrank-algorithms-solutions hackerrank-algorithms-youtube hackerrank-all-solutions hackerrank-challenges hackerrank-ctci hackerrank-implementation hackerrank-java hackerrank-practice hackerrank-problem-solutions hackerrank-problem-solving hackerrank-solutions hackerrank-solutions-for-java hackerrank-solutions-github
<p align="center"> <a href="https://www.facebook.com/groups/codingip"> <img align="left" height=85 src="https://static1.squarespace.com/static/5994a0f17131a5643f407c37/t/5bf9070c0ebbe88c3392b17c/1543047009836/facebook_button.png"> </a> <a align="center" href="https://www.hackerrank.com/Kanahaiya"> <img height=85 src="https://d3keuzeb2crhkn.cloudfront.net/hackerrank/assets/styleguide/logo_wordmark-f5c5eb61ab0a154c3ed9eda24d0b9e31.svg"> </a> <a href="https://www.youtube.com/c/JavaAidTutorials?sub_confirmation=1"> <img align="right" height=85 src="https://www.freepngimg.com/thumb/subscribe/4-2-subscribe-png-2.png"> </a> <p/> This repository contains <b>efficient hackerrank solutions</b> for most of the <b>hackerrank challenges</b> including <b><a href="https://www.youtube.com/c/JavaAidTutorials?sub_confirmation=1">video tutorials</b></a>. If you are looking for anyone of these things - hackerrank solutions java GitHub | hackerrank tutorial in java | hackerrank 30 days of code solutions | hackerrank algorithms solution | hackerrank cracking the coding interview solutions | hackerrank general programming solutions | hackerrank implementation solutions | hackerrank data structures solutions in java | hackerrank algorithm solution in java | hackerrank challenges solution | hackerrank practices solution | hackerrank coding challenges solutions | hackerrank questions | hackerrank problems | how to solve hackerrank practice problem in java | problem solving | coding interview | coding | programming | hackerrank interview preparation kit solution in java | problem solving with java | JAVAAID | hackerank solution | Kanahaiya Gupta then you are at the right place. :) <br/> <br/> * [30 DAYS OF CODE](#30-days-of-code) * [JAVA](#java) * [ALGORITHMS](#algorithms) * [CRACKING THE CODING INTERVIEW](#cracking-the-coding-interview) * [DATA STRUCTURES](#data-structures) * [GENERAL PROGRAMMING](#general-programming) * [IMPLEMENTATION](#implementation) * [INTERVIEW PREPARATION KIT](#interview-preparation-kit) * [TOP 10 LEARNING RESOURCES](#top-10-learning-resources) Coding environment used- Windows 8.1, Eclipse Oxygen, JAVA 8 # 30 DAYS OF CODE | Day | Challenge | Solution | Video Explaination | |:---:|:---------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------:| | 0 | [Hello, World](https://www.hackerrank.com/challenges/30-hello-world) | [Day0HelloWorld.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day0HelloWorld.java) | | | 1 | [Data Types](https://www.hackerrank.com/challenges/30-data-types) | [Day1DataTypes.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day1DataTypes.java) | | | 2 | [Operators](https://www.hackerrank.com/challenges/30-operators/problem) | [Day2Operators.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day2Operators.java) | | | 3 | [Intro to Conditional Statements](https://www.hackerrank.com/challenges/30-conditional-statements/problem) | [Day3IntroToConditionalStatements.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day3IntroToConditionalStatements.java) | | | 4 | [Class vs. Instance](https://www.hackerrank.com/challenges/30-class-vs-instance/problem) | [Day4ClassVsInstance.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day4ClassVsInstance.java) | | | 5 | [Loops](https://www.hackerrank.com/challenges/30-loops/problem) | [Day5Loops.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day5Loops.java) | | | 6 | [Let's Review](https://www.hackerrank.com/challenges/30-review-loop/problem) | [Day6LetsReview.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day6LetsReview.java) | | | 7 | [Arrays](https://www.hackerrank.com/challenges/30-arrays/problem) | [Day7Arrays.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day7Arrays.java) | | | 8 | [Dictionaries and Maps](https://www.hackerrank.com/challenges/30-dictionaries-and-maps/problem) | [Day8DictionariesAndMaps.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day8DictionariesAndMaps.java) | | | 9 | [Recursion](https://www.hackerrank.com/challenges/30-recursion/problem) | [Day9Recursion.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day9Recursion.java) | | | 10 | [Binary Numbers](https://www.hackerrank.com/challenges/30-binary-numbers/problem) | [Day10BinaryNumbers.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day10BinaryNumbers.java) | | | 11 | [2D Arrays](https://www.hackerrank.com/challenges/30-2d-arrays/problem) | [Day112DArrays.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day112DArrays.java) | | | 12 | [Inheritance](https://www.hackerrank.com/challenges/30-inheritance/problem) | [Student.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Student.java) | | | 13 | [Abstract Classes](https://www.hackerrank.com/challenges/30-abstract-classes/problem) | [MyBook.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/MyBook.java) | | | 14 | [Scope](https://www.hackerrank.com/challenges/30-scope/problem) | [Day14Scope.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day14Scope.java) | | | 15 | [Linked List](https://www.hackerrank.com/challenges/30-linked-list/problem) | [Day15LinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day15LinkedList.java) | | | 16 | [Exceptions - String to Integer](https://www.hackerrank.com/challenges/30-exceptions-string-to-integer/problem) | [Day16ExceptionsStringToInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day16ExceptionsStringToInteger.java) | | | 17 | [MoreExceptions](https://www.hackerrank.com/challenges/30-more-exceptions/problem) | [Day17MoreExceptions.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day17MoreExceptions.java) | | | 18 | [QueuesAndStacks](https://www.hackerrank.com/challenges/30-queues-stacks/problem) | [Day18QueuesAndStacks.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day18QueuesAndStacks.java) | | | 19 | [Interfaces](https://www.hackerrank.com/challenges/30-interfaces/problem) | [Day19Interfaces.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day19Interfaces.java) | | | 20 | [Sorting](https://www.hackerrank.com/challenges/30-sorting/problem) | [Day20Sorting.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day20Sorting.java) | | | 21 | [Generics](https://www.hackerrank.com/challenges/30-generics/problem) | [Day21Generics.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day21Generics.java) | | | 22 | [BinarySearchTrees](https://www.hackerrank.com/challenges/30-binary-search-trees/problem) | [Day22BinarySearchTrees.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day22BinarySearchTrees.java) | | | 23 | [BSTLevelOrderTraversal](https://www.hackerrank.com/challenges/30-binary-trees/problem) | [Day23BSTLevelOrderTraversal.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day23BSTLevelOrderTraversal.java) | | | 24 | [MoreLinkedLists](https://www.hackerrank.com/challenges/30-linked-list-deletion/problem) | [Day24MoreLinkedLists.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day24MoreLinkedLists.java) | | | 25 | [RunningTimeAndComplexity](https://www.hackerrank.com/challenges/30-running-time-and-complexity/problem) | [Day25RunningTimeAndComplexity.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day25RunningTimeAndComplexity.java) | | | 26 | [Nested Logic](https://www.hackerrank.com/challenges/30-nested-logic/problem) | [Day26NestedLogic.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day26NestedLogic.java) | | | 27 | [Day 27: Testing](https://www.hackerrank.com/challenges/30-testing/problem) | [Day27Testing.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day27Testing.java) | | | 28 | [RegEx,Patterns,and Intro to Databases](https://www.hackerrank.com/challenges/30-regex-patterns/problem) | [Day28RegExPatternsAndIntroToDatabases.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day28RegExPatternsAndIntroToDatabases.java) | | | 29 | [Bitwise AND](https://www.hackerrank.com/challenges/30-bitwise-and/problem) | [Day29BitwiseAND.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/30DaysOfCode/src/main/java/com/javaaid/hackerrank/solutions/thirtydaysofcode/Day29BitwiseAND.java) | | # JAVA | Subdomain | Challenge | Solution | Video Explaination | |:---------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------:| | Introduction | [Welcome to Java!](https://www.hackerrank.com/challenges/welcome-to-java) | [WelcomeToJava.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/WelcomeToJava.java) | | | Introduction | [Java Stdin and Stdout I](https://www.hackerrank.com/challenges/java-stdin-and-stdout-1) | [JavaStdinAndStdoutI.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaStdinAndStdoutI.java) | | | Introduction | [Java If-Else](https://www.hackerrank.com/challenges/java-if-else) | [JavaIfElse.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaIfElse.java) | | | Introduction | [Java Stdin and Stdout II](https://www.hackerrank.com/challenges/java-stdin-stdout) | [JavaStdinAndStdoutII.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaStdinAndStdoutII.java) | | | Introduction | [Java Output Formatting](https://www.hackerrank.com/challenges/java-output-formatting) | [JavaOutputFormatting.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaOutputFormatting.java) | | | Introduction | [Java Loops I](https://www.hackerrank.com/challenges/java-loops-i) | [JavaLoopsI.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaLoopsI.java) | | | Introduction | [Java Loops II](https://www.hackerrank.com/challenges/java-loops) | [JavaLoopsII.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaLoopsII.java) | | | Introduction | [Java Datatypes](https://www.hackerrank.com/challenges/java-datatypes) | [JavaDatatypes.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaDatatypes.java) | | | Introduction | [Java End-of-file](https://www.hackerrank.com/challenges/java-end-of-file) | [JavaEndOfFile.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaEndOfFile.java) | | | Introduction | [Java Static Initializer Block](https://www.hackerrank.com/challenges/java-static-initializer-block/problem) | [JavaStaticInitializerBlock.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaStaticInitializerBlock.java) | | | Introduction | [Java Int to String](https://www.hackerrank.com/challenges/java-int-to-string/problem) | [JavaIntToString.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaIntToString.java) | | | Introduction | [Java Date and Time](https://www.hackerrank.com/challenges/java-date-and-time/problem) | [JavaDateAndTime.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/introduction/JavaDateAndTime.java) | | | Introduction | [Java Currency Formatter](https://www.hackerrank.com/challenges/java-currency-formatter/problem) | [JavaCurrencyFormatter.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaCurrencyFormatter.java) | | | Strings | [Java Strings Introduction](https://www.hackerrank.com/challenges/java-strings-introduction/problem) | [JavaStringsIntroduction.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaStringsIntroduction.java) | | | Strings | [Java Substring](https://www.hackerrank.com/challenges/java-substring/problem) | [JavaSubstring.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaSubstring.java) | | | Strings | [Java Substring Comparisons](https://www.hackerrank.com/challenges/java-string-compare/problem) | [JavaSubstringComparisons.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaSubstringComparisons.java) | | | Strings | [Java String Reverse](https://www.hackerrank.com/challenges/java-string-reverse/problem) | [JavaStringReverse.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaStringReverse.java) | | | Strings | [Java Anagrams](https://www.hackerrank.com/challenges/java-anagrams/problem) | [JavaAnagrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaAnagrams.java) | | | Strings | [Java String Tokens](https://www.hackerrank.com/challenges/java-string-tokens/problem) | [JavaStringTokens.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaStringTokens.java) | | | Strings | [Pattern Syntax Checker](https://www.hackerrank.com/challenges/pattern-syntax-checker/problem) | [PatternSyntaxChecker.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/PatternSyntaxChecker.java) | | | Strings | [Valid Username Regular Expression](https://www.hackerrank.com/challenges/valid-username-checker/problem) | [ValidUsernameRegularExpression.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/ValidUsernameRegularExpression.java) | | | Strings | [Tag Content Extractor](https://www.hackerrank.com/challenges/tag-content-extractor/problem) | [TagContentExtractor.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/TagContentExtractor.java) | | | Strings | [Java Regex](https://www.hackerrank.com/challenges/java-regex/problem) | [JavaRegex.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaRegex.java) | | | Strings | [Java Regex 2 - Duplicate Words](https://www.hackerrank.com/challenges/duplicate-word/problem) | [JavaRegex2DuplicateWords.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/strings/JavaRegex2DuplicateWords.java) | | | BigInteger | [Java BigInteger](https://www.hackerrank.com/challenges/java-biginteger/problem) | [JavaBigInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/bignumber/JavaBigInteger.java) | | | BigInteger | [Java BigDecimal](https://www.hackerrank.com/challenges/java-bigdecimal/problem) | [JavaBigDecimal.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/bignumber/JavaBigDecimal.java) | | | BigInteger | [Java Primality Test](https://www.hackerrank.com/challenges/java-primality-test/problem) | [JavaPrimalityTest.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/bignumber/JavaPrimalityTest.java) | | | Data Structures | [Java 1D Array](https://www.hackerrank.com/challenges/java-1d-array-introduction/problem) | [Java1DArray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/Java1DArray.java) | | | Data Structures | [Java 2D Array](https://www.hackerrank.com/challenges/java-2d-array/problem) | [Java2DArray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/Java2DArray.java) | | | Data Structures | [Java Subarray](https://www.hackerrank.com/challenges/java-negative-subarray/problem) | [JavaSubarray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaSubarray.java) | | | Data Structures | [Java Arraylist](https://www.hackerrank.com/challenges/java-arraylist/problem) | [JavaArraylist.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaArraylist.java) | | | Data Structures | [Java Map](https://www.hackerrank.com/challenges/phone-book/problem) | [JavaMap.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaMap.java) | | | Data Structures | [Java Hashset](https://www.hackerrank.com/challenges/java-hashset/problem) | [JavaHashset.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaHashset.java) | | | Data Structures | [Java Comparator](https://www.hackerrank.com/challenges/java-comparator/problem) | [JavaComparator.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaComparator.java) | | | Data Structures | [Java Sort](https://www.hackerrank.com/challenges/java-sort/problem) | [JavaSort.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaSort.java) | | | Data Structures | [Java List](https://www.hackerrank.com/challenges/java-list/problem) | [JavaList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaList.java) | | | Data Structures | [Java Generics](https://www.hackerrank.com/challenges/java-generics/problem) | [JavaGenerics.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaGenerics.java) | | | Data Structures | [Java Stack](https://www.hackerrank.com/challenges/java-stack/problem) | [JavaStack.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaStack.java) | | | Data Structures | [Java Dequeue](https://www.hackerrank.com/challenges/java-dequeue/problem) | [JavaDequeue.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaDequeue.java) | | | Data Structures | [Java BitSet](https://www.hackerrank.com/challenges/java-bitset/problem) | [JavaBitSet.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaBitSet.java) | | | Data Structures | [Java Priority Queue](https://www.hackerrank.com/challenges/java-priority-queue/problem) | [JavaPriorityQueue.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/JavaPriorityQueue.java) | | | Data Structures | [Java 1D Array (Part 2)](https://www.hackerrank.com/challenges/java-1d-array/problem) | [Java1DArrayPart2.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/datastructures/Java1DArrayPart2.java) | | | Object Oriented Programming | [Java Inheritance I](https://www.hackerrank.com/challenges/java-inheritance-1/problem) | [JavaInheritanceI.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaInheritanceI.java) | | | Object Oriented Programming | [Java Inheritance II](https://www.hackerrank.com/challenges/java-inheritance-2/problem) | [JavaInheritanceII.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaInheritanceII.java) | | | Object Oriented Programming | [Java Abstract Class](https://www.hackerrank.com/challenges/java-abstract-class/problem) | [JavaAbstractClass.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaAbstractClass.java) | | | Object Oriented Programming | [Java Interface](https://www.hackerrank.com/challenges/java-interface/problem) | [JavaInterface.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaInterface.java) | | | Object Oriented Programming | [Java Method Overriding](https://www.hackerrank.com/challenges/java-method-overriding/problem) | [JavaMethodOverriding.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaMethodOverriding.java) | | | Object Oriented Programming | [Java Method Overriding 2(Super Keyword)](https://www.hackerrank.com/challenges/java-method-overriding-2-super-keyword/problem) | [JavaMethodOverriding2SuperKeyword.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaMethodOverriding2SuperKeyword.java) | | | Object Oriented Programming | [Java Instanceof keyword](https://www.hackerrank.com/challenges/java-instanceof-keyword/problem) | [JavaInstanceofkeyword.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaInstanceofkeyword.java) | | | Object Oriented Programming | [Java Iterator](https://www.hackerrank.com/challenges/java-iterator/problem) | [JavaIterator.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/oop/JavaIterator.java) | | | Exception Handling | [Java Exception Handling (Try-catch)](https://www.hackerrank.com/challenges/java-exception-handling-try-catch/problem) | [JavaExceptionHandlingTryCatch.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/exceptionhandling/JavaExceptionHandlingTryCatch.java) | | | Exception Handling | [Java Exception Handling](https://www.hackerrank.com/challenges/java-exception-handling/problem) | [JavaExceptionHandling.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/exceptionhandling/JavaExceptionHandling.java) | | | Advanced | [Java Varargs - Simple Addition](https://www.hackerrank.com/challenges/simple-addition-varargs/problem) | [JavaVarargsSimpleAddition.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaVarargsSimpleAddition.java) | | | Advanced | [Java Reflection - Attributes](https://www.hackerrank.com/challenges/java-reflection-attributes/problem) | [JavaReflectionAttributes.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaReflectionAttributes.java) | | | Advanced | [Can You Access?](https://www.hackerrank.com/challenges/can-you-access/problem) | [CanYouAccess.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/CanYouAccess.java) | | | Advanced | [Java Factory Pattern](https://www.hackerrank.com/challenges/java-factory/problem) | [JavaFactoryPattern.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaFactoryPattern.java) | | | Advanced | [Java Singleton Pattern](https://www.hackerrank.com/challenges/java-singleton/problem) | [JavaSingletonPattern.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaSingletonPattern.java) | | | Advanced | [Covariant Return Types](https://www.hackerrank.com/challenges/java-covariance/problem) | [CovariantReturnTypes.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/CovariantReturnTypes.java) | | | Advanced | [Prime Checker](https://www.hackerrank.com/challenges/prime-checker/problem) | [PrimeChecker.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/PrimeChecker.java) | | | Advanced | [Java Annotations](https://www.hackerrank.com/challenges/java-annotations/problem) | [JavaAnnotations.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaAnnotations.java) | | | Advanced | [Java Lambda Expressions](https://www.hackerrank.com/challenges/java-lambda-expressions/problem) | [JavaLambdaExpressions.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaLambdaExpressions.java) | | | Advanced | [Java MD5](https://www.hackerrank.com/challenges/java-md5/problem) | [JavaMD5.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaMD5.java) | | | Advanced | [Java SHA-256](https://www.hackerrank.com/challenges/sha-256/problem) | [JavaSHA256.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaSHA256.java) | | | Advanced | [Java Visitor Pattern](https://www.hackerrank.com/challenges/java-vistor-pattern/problem) | [JavaVisitorPattern.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Languages/Java/src/main/java/com/javaaid/hackerrank/solutions/languages/java/advanced/JavaVisitorPattern.java) | | # ALGORITHMS | Subdomain | Challenge | Solution | Video Explaination | |:-----------------------:|:-----------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------:| | Sorting | [Quicksort 1 - Partition](https://www.hackerrank.com/challenges/quicksort1) | [Quicksort1Partition.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/Quicksort1Partition.java) | | | Sorting | [Marc's Cakewalk](https://www.hackerrank.com/challenges/marcs-cakewalk) | [MarcsCakewalk.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/MarcsCakewalk.java) | | | Sorting | [Minimum Absolute Difference in an Array](https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array) | [MinimumAbsoluteDifferenceInAnArray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/MinimumAbsoluteDifferenceInAnArray.java) | | | Sorting | [Luck Balance](https://www.hackerrank.com/challenges/luck-balance/problem) | [LuckBalance.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/LuckBalance.java) | | | Sorting | [Climbing the Leaderboard](https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem) | [ClimbingTheLeaderboard.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/ClimbingTheLeaderboard.java) | [Tutorial](https://youtu.be/CAyXHTqBIBU) | | Sorting | [Big Sorting](https://www.hackerrank.com/challenges/big-sorting/problem) | [BigSorting.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/BigSorting.java) | | | Sorting | [Insertion Sort - Part 1](https://www.hackerrank.com/challenges/insertionsort1/problem) | [InsertionSortPart1.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/InsertionSortPart1.java) | | | Sorting | [Insertion Sort - Part 2](https://www.hackerrank.com/challenges/insertionsort2/problem) | [InsertionSortPart2.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/InsertionSortPart2.java) | | | Sorting | [Correctness and the Loop Invariant](https://www.hackerrank.com/challenges/correctness-invariant/problem) | [CorrectnessAndTheLoopInvariant.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/CorrectnessAndTheLoopInvariant.java) | | | Sorting | [Running Time of Algorithms](https://www.hackerrank.com/challenges/runningtime/problem) | [RunningTimeOfAlgorithms.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/RunningTimeOfAlgorithms.java) | | | Sorting | [Counting Sort 1](https://www.hackerrank.com/challenges/countingsort1/problem) | [CountingSort1.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/CountingSort1.java) | | | Sorting | [Counting Sort 2](https://www.hackerrank.com/challenges/countingsort2/problem) | [CountingSort2.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/CountingSort2.java) | | | Sorting | [Counting Sort 3](https://www.hackerrank.com/challenges/countingsort3/problem) | [CountingSort3.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/CountingSort3.java) | | | Sorting | [Intro to Tutorial Challenges](https://www.hackerrank.com/challenges/tutorial-intro/problem) | [IntroToTutorialChallenges.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/IntroToTutorialChallenges.java) | | | Sorting | [Find the Median](https://www.hackerrank.com/challenges/find-the-median/problem) | [FindTheMedian.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/FindTheMedian.java) | | | Sorting | [Closest Numbers](https://www.hackerrank.com/challenges/closest-numbers/problem) | [ClosestNumbers.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/ClosestNumbers.java) | | | Sorting | [Mark and Toys](https://www.hackerrank.com/challenges/mark-and-toys/problem) | [MarkAndToys.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/MarkAndToys.java) | | | Sorting | [Jim and the Orders](https://www.hackerrank.com/challenges/jim-and-the-orders/problem) | [JimAndTheOrders.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/sorting/JimAndTheOrders.java) | | | search | [Lonely Integer](https://www.hackerrank.com/challenges/lonely-integer/problem) | [LonelyInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/search/LonelyInteger.java) | [Tutorial](https://youtu.be/k1i6eIpeXak) | | search | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer/problem) | [BitManipulationLonelyInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/search/BitManipulationLonelyInteger.java) | [Tutorial](https://youtu.be/k1i6eIpeXak) | | search | [Ice Cream Parlor](https://www.hackerrank.com/challenges/icecream-parlor/problem) | [IceCreamParlor.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/search/IceCreamParlor.java) | [Tutorial](https://youtu.be/7sEHjHef2zo) | | search | [HashTables: IceCreamParlor](https://www.hackerrank.com/challenges/ctci-ice-cream-parlor/problem) | [HashTablesIceCreamParlor.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/search/HashTablesIceCreamParlor.java) | [Tutorial](https://youtu.be/7sEHjHef2zo) | | search | [Minimum Loss](https://www.hackerrank.com/challenges/minimum-loss/problem) | [MinimumLoss.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/search/MinimumLoss.java) | | | search | [Sherlock and Array](https://www.hackerrank.com/challenges/sherlock-and-array/problem) | [SherlockAndArray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/search/SherlockAndArray.java) | [Tutorial](https://youtu.be/xPHJH8RL3mo) | | Greedy Algorithms | [Marc's Cakewalk](https://www.hackerrank.com/challenges/marcs-cakewalk/problem) | [MarcsCakewalk.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/greedy/MarcsCakewalk.java) | | | Greedy Algorithms | [Luck Balance](https://www.hackerrank.com/challenges/luck-balance/problem) | [LuckBalance.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/greedy/LuckBalance.java) | | | Greedy Algorithms | [Equal Stacks](https://www.hackerrank.com/challenges/equal-stacks/problem) | [EqualStacks.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/greedy/EqualStacks.java) | [Tutorial](https://youtu.be/2PO0SRpoX-g) | | Greedy Algorithms | [Mark and Toys](https://www.hackerrank.com/challenges/mark-and-toys/problem) | [MarkAndToys.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/greedy/MarkAndToys.java) | | | Greedy Algorithms | [Jim and the Orders](https://www.hackerrank.com/challenges/jim-and-the-orders/problem) | [JimAndTheOrders.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/greedy/JimAndTheOrders.java) | | | Greedy Algorithms | [Priyanka and Toys](https://www.hackerrank.com/challenges/priyanka-and-toys/problem) | [PriyankaAndToys.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/greedy/PriyankaAndToys.java) | | | Graph Theory | [Kruskal (MST): Really Special Subtree](https://www.hackerrank.com/challenges/kruskalmstrsub/problem) | [KruskalMSTReallySpecialSubtree.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/graphtheory/KruskalMSTReallySpecialSubtree.java) | | | Graph Theory | [Breadth First Search: Shortest Reach](https://www.hackerrank.com/challenges/bfsshortreach/problem) | [BreadthFirstSearchShortestReach.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/graphtheory/BreadthFirstSearchShortestReach.java) | | | Graph Theory | [Prim's (MST) : Special Subtree](https://www.hackerrank.com/challenges/primsmstsub/problem) | [PrimsMSTSpecialSubtree.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/graphtheory/PrimsMSTSpecialSubtree.java) | | | Strings | [Super Reduced String](https://www.hackerrank.com/challenges/reduced-string/problem) | [SuperReducedString.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/SuperReducedString.java) | | | Strings | [Caesar Cipher](https://www.hackerrank.com/challenges/caesar-cipher-1/problem) | [CaesarCipher.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/CaesarCipher.java) | | | Strings | [Mars Exploration](https://www.hackerrank.com/challenges/mars-exploration/problem) | [MarsExploration.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/MarsExploration.java) | | | Strings | [CamelCase](https://www.hackerrank.com/challenges/camelcase/problem) | [CamelCase.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/CamelCase.java) | | | Strings | [Gemstones](https://www.hackerrank.com/challenges/gem-stones/problem) | [Gemstones.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/Gemstones.java) | | | Strings | [The Love-Letter Mystery](https://www.hackerrank.com/challenges/the-love-letter-mystery/problem) | [TheLoveLetterMystery.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/TheLoveLetterMystery.java) | | | Strings | [Pangrams](https://www.hackerrank.com/challenges/pangrams/problem) | [Pangrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/Pangrams.java) | | | Strings | [Alternating Characters](https://www.hackerrank.com/challenges/alternating-characters/problem) | [AlternatingCharacters.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/AlternatingCharacters.java) | | | Strings | [Beautiful Binary String](https://www.hackerrank.com/challenges/beautiful-binary-string/problem) | [BeautifulBinaryString.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/BeautifulBinaryString.java) | | | Strings | [Big Sorting](https://www.hackerrank.com/challenges/big-sorting/problem) | [BigSorting.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/BigSorting.java) | | | Strings | [Anagram](https://www.hackerrank.com/challenges/anagram/problem) | [Anagram.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/Anagram.java) | | | Strings | [Two Strings](https://www.hackerrank.com/challenges/two-strings/problem) | [TwoStrings.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/TwoStrings.java) | | | Strings | [Funny String](https://www.hackerrank.com/challenges/funny-string/problem) | [FunnyString.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/FunnyString.java) | | | Strings | [String Construction](https://www.hackerrank.com/challenges/string-construction/problem) | [StringConstruction.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/StringConstruction.java) | | | Strings | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams/problem) | [StringsMakingAnagrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/StringsMakingAnagrams.java) | | | Strings | [Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams/problem) | [MakingAnagrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/MakingAnagrams.java) | | | Strings | [Caesar Cipher: Encryption](https://www.hackerrank.com/challenges/linkedin-practice-caesar-cipher/problem) | [CaesarCipherEncryption.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/CaesarCipherEncryption.java) | | | Strings | [Game of Thrones - I](https://www.hackerrank.com/challenges/game-of-thrones/problem) | [GameOfThronesI.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/GameOfThronesI.java) | | | Strings | [Sherlock and the Valid String](https://www.hackerrank.com/challenges/sherlock-and-valid-string/problem) | [SherlockAndTheValidString.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/SherlockAndTheValidString.java) | | | Strings | [Separate the Numbers](https://www.hackerrank.com/challenges/separate-the-numbers/problem) | [SeparateTheNumbers.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/SeparateTheNumbers.java) | [Tutorial](https://youtu.be/q9d7MZpuWSE) | | Strings | [PalindromeIndex](https://www.hackerrank.com/challenges/palindrome-index/problem) | [PalindromeIndex.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/PalindromeIndex.java) | [Tutorial](https://youtu.be/U_5l038GR5I) | | Strings | [Common Child](https://www.hackerrank.com/challenges/common-child/problem) | [CommonChild.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/CommonChild.java) | [Tutorial](https://youtu.be/ItRZRx8kvwY) | | Recursion | [Recursive Digit Sum](https://www.hackerrank.com/challenges/recursive-digit-sum/problem) | [RecursiveDigitSum.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/recursion/RecursiveDigitSum.java) | | | Dynamic Programming | [Fibonacci Modified](https://www.hackerrank.com/challenges/fibonacci-modified/problem) | [FibonacciModified.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/dynamicprogramming/FibonacciModified.java) | | | Dynamic Programming | [The Maximum Subarray](https://www.hackerrank.com/challenges/maxsubarray/problem) | [TheMaximumSubarray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/dynamicprogramming/TheMaximumSubarray.java) | | | Bit Manipulation | [Lonely Integer](https://www.hackerrank.com/challenges/lonely-integer/problem) | [LonelyInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/bitmanipulation/LonelyInteger.java) | [Tutorial](https://youtu.be/k1i6eIpeXak) | | Bit Manipulation | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer/problem) | [BitManipulationLonelyInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/bitmanipulation/BitManipulationLonelyInteger.java) | [Tutorial](https://youtu.be/k1i6eIpeXak) | | Bit Manipulation | [Sum vs XOR](https://www.hackerrank.com/challenges/sum-vs-xor/problem) | [SumvsXOR.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/bitmanipulation/SumvsXOR.java) | | | Bit Manipulation | [Maximizing XOR](https://www.hackerrank.com/challenges/maximizing-xor/problem) | [MaximizingXOR.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/bitmanipulation/MaximizingXOR.java) | | | Bit Manipulation | [Sansa and XOR](https://www.hackerrank.com/challenges/sansa-and-xor/problem) | [SansaAndXOR.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/bitmanipulation/SansaAndXOR.java) | | | Constructive Algorithms | [New Year Chaos](https://www.hackerrank.com/challenges/new-year-chaos/problem) | [NewYearChaos.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/com/constructive_algorithms/NewYearChaos.java) | [Tutorial](https://youtu.be/YWYF6bOhPW8) | # CRACKING THE CODING INTERVIEW | Topic | Challenge | Solution | Video Explaination | |:---------------------:|:------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------:| | Techniques / Concepts | [Time Complexity: Primality](https://www.hackerrank.com/challenges/ctci-big-o) | [Primality.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/Primality.java) | | | Techniques / Concepts | [Recursion: Fibonacci Numbers](https://www.hackerrank.com/challenges/ctci-fibonacci-numbers) | [FibonacciNumber.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/FibonacciNumber.java) | | | Techniques / Concepts | [Recursion: Davis' Staircase](https://www.hackerrank.com/challenges/ctci-recursive-staircase) | [DavisStaircase.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/DavisStaircase.java) | | | Techniques / Concepts | [Bit Manipulation: Lonely Integer](https://www.hackerrank.com/challenges/ctci-lonely-integer) | [LonelyInteger.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/LonelyInteger.java) | [Tutorial](https://youtu.be/k1i6eIpeXak) | | Techniques / Concepts | [DP: Coin Change](https://www.hackerrank.com/challenges/ctci-coin-change/problem) | [DPCoinChange.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/DPCoinChange.java) | | | Data Structures | [Arrays: Left Rotation](https://www.hackerrank.com/challenges/ctci-array-left-rotation) | [LeftRotation.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/LeftRotation.java) | [Tutorial](https://youtu.be/TurKRD6Ne6w) | | Data Structures | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams) | [MakingAnagrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/MakingAnagrams.java) | | | Data Structures | [Hash Tables: Ransom Note](https://www.hackerrank.com/challenges/ctci-ransom-note/problem) | [HashTablesRansomNote.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/HashTablesRansomNote.java) | | | Data Structures | [Linked Lists: Detect a Cycle](https://www.hackerrank.com/challenges/ctci-linked-list-cycle/problem) | [DetectACycle.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/DetectACycle.java) | | | Data Structures | [Stacks: Balanced Brackets](https://www.hackerrank.com/challenges/ctci-balanced-brackets/problem) | [BalancedBrackets.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/BalancedBrackets.java) | | | Data Structures | [Trees: Is This a Binary Search Tree?](https://www.hackerrank.com/challenges/ctci-is-binary-search-tree/problem) | [TreesIsThisABinarySearchTree.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/TreesIsThisABinarySearchTree.java) | | | Data Structures | [Heaps: Find the Running Median](https://www.hackerrank.com/challenges/ctci-find-the-running-median/problem) | [HeapsFindTheRunningMedian.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/HeapsFindTheRunningMedian.java) | | | Data Structures | [Tries: Contacts](https://www.hackerrank.com/challenges/ctci-contacts/problem) | [TriesContacts.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/TriesContacts.java) | | | Algorithms | [Sorting: Bubble Sort](https://www.hackerrank.com/challenges/ctci-bubble-sort/problem) | [SortingBubbleSort.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/SortingBubbleSort.java) | | | Algorithms | [Sorting: Comparator](https://www.hackerrank.com/challenges/ctci-comparator-sorting/problem) | [SortingComparator.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/SortingComparator.java) | | | Algorithms | [Hash Tables: Ice Cream Parlor](https://www.hackerrank.com/challenges/ctci-ice-cream-parlor/problem) | [HashTablesIceCreamParlor.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/HashTablesIceCreamParlor.java) | | Algorithms | [BFS: Shortest Reach in a Graph](https://www.hackerrank.com/challenges/ctci-bfs-shortest-reach/problem) | [BFSShortestReachInAGraph.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Tutorials/CrackingTheCodingInterview/src/main/java/com/javaaid/hackerrank/solutions/tutorials/ctci/BFSShortestReachInAGraph.java) | # DATA STRUCTURES | Subdomain | Challenge | Solution | Video Explaination | |:---------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------:| | Arrays | [Arrays - DS](https://www.hackerrank.com/challenges/arrays-ds) | [ArraysDS.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/ArraysDS.java) | [Tutorial](https://youtu.be/u_oUMtj7C3k) | | Arrays | [2D Array - DS](https://www.hackerrank.com/challenges/2d-array) | [TwoDArrayDS.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/TwoDArrayDS.java) | | | Arrays | [Dynamic Array](https://www.hackerrank.com/challenges/dynamic-array) | [DynamicArray.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/DynamicArray.java) | [Tutorial](https://youtu.be/N0lSGQrya6s) | | Arrays | [Left Rotation](https://www.hackerrank.com/challenges/array-left-rotation) | [LeftRotation.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/LeftRotation.java) | [Tutorial](https://youtu.be/TurKRD6Ne6w) | | Arrays | [Big Sorting](https://www.hackerrank.com/challenges/big-sorting/problem) | [BigSorting.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/BigSorting.java) | | | Arrays | [Sparse Arrays](https://www.hackerrank.com/challenges/sparse-arrays/problem) | [SparseArrays.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/SparseArrays.java) | [Tutorial](https://youtu.be/BZdnvTBO4vI) | | Arrays | [Array Manipulation](https://www.hackerrank.com/challenges/crush/problem) | [ArrayManipulation.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/arrays/ArrayManipulation.java) | [Tutorial](https://youtu.be/hDhf04AJIRs) | | Stacks | [Maximum Element](https://www.hackerrank.com/challenges/maximum-element) | [MaximumElement.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/stacks/MaximumElement.java) | [Tutorial](https://youtu.be/CXYL8JfeN6I) | | Stacks | [Balanced Brackets](https://www.hackerrank.com/challenges/balanced-brackets) | [BalancedBrackets.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/stacks/BalancedBrackets.java) | | | Stacks | [Equal Stacks](https://www.hackerrank.com/challenges/equal-stacks/problem) | [EqualStacks.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/stacks/EqualStacks.java) | [Tutorial](https://youtu.be/2PO0SRpoX-g) | | Stacks | [Largest Rectangle](https://www.hackerrank.com/challenges/largest-rectangle/problem) | [LargestRectangle.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/stacks/LargestRectangle.java) | | | Stacks | [Simple Text Editor](https://www.hackerrank.com/challenges/simple-text-editor/problem) | [SimpleTextEditor.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/stacks/SimpleTextEditor.java) | | | Trees | [Preorder Traversal](https://www.hackerrank.com/challenges/tree-preorder-traversal) | [PreorderTraversal.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/PreorderTraversal.java) | | | Trees | [Inorder Traversal](https://www.hackerrank.com/challenges/tree-inorder-traversal) | [InorderTraversal.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/InorderTraversal.java) | | | Trees | [Postorder Traversal](https://www.hackerrank.com/challenges/tree-postorder-traversal) | [PostorderTraversal.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/PostorderTraversal.java) | | | Trees | [Height of a Binary Tree](https://www.hackerrank.com/challenges/tree-height-of-a-binary-tree/problem) | [HeightOfABinaryTree.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/HeightOfABinaryTree.java) | | | Trees | [Level Order Traversal](https://www.hackerrank.com/challenges/tree-level-order-traversal/problem) | [LevelOrderTraversal.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/LevelOrderTraversal.java) | | | Trees | [Huffman Decoding](https://www.hackerrank.com/challenges/tree-huffman-decoding/problem) | [HuffmanDecoding.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/HuffmanDecoding.java) | | | Trees | [Top View](https://www.hackerrank.com/challenges/tree-top-view/problem) | [TopView.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/trees/TopView.java) | | | Linked List | [Print the Elements of a Linked List](https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list) | [PrintTheElementsOfALinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/PrintTheElementsOfALinkedList.java) | | | Linked List | [Insert a node at the head of a linked list](https://www.hackerrank.com/challenges/insert-a-node-at-the-head-of-a-linked-list) | [InsertANodeAtHeadOfAList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/InsertANodeAtHeadOfAList.java) | | | Linked List | [Insert a Node at the Tail of a Linked List](https://www.hackerrank.com/challenges/insert-a-node-at-the-tail-of-a-linked-list) | [InsertANodeAtTheTailOfALinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/InsertANodeAtTheTailOfALinkedList.java) | | | Linked List | [Insert a node at a specific position in a linked list](https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem) | [InsertANodeAtASpecificPositionInALinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/InsertANodeAtASpecificPositionInALinkedList.java) | | | Linked List | [Delete a Node](https://www.hackerrank.com/challenges/delete-a-node-from-a-linked-list/problem) | [DeleteANode.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/DeleteANode.java) | | | Linked List | [Print in Reverse](https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list-in-reverse/problem) | [PrintInReverse.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/PrintInReverse.java) | | | Linked List | [Reverse a linked list](https://www.hackerrank.com/challenges/reverse-a-linked-list/problem) | [ReverseALinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/ReverseALinkedList.java) | | | Linked List | [Compare two linked lists](https://www.hackerrank.com/challenges/compare-two-linked-lists/problem) | [CompareTwoLinkedLists.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/CompareTwoLinkedLists.java) | | | Linked List | [Merge two sorted linked lists](https://www.hackerrank.com/challenges/merge-two-sorted-linked-lists/problem) | [MergeTwoSortedLinkedLists.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/MergeTwoSortedLinkedLists.java) | | | Linked List | [Get Node Value](https://www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/problem) | [GetNodeValue.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/GetNodeValue.java) | | | Linked List | [Delete duplicate-value nodes from a sorted linked list](https://www.hackerrank.com/challenges/delete-duplicate-value-nodes-from-a-sorted-linked-list/problem)| [DeleteDuplicateValueNodesFromASortedLinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/DeleteDuplicateValueNodesFromASortedLinkedList.java) | | | Linked List | [Cycle Detection](https://www.hackerrank.com/challenges/detect-whether-a-linked-list-contains-a-cycle/problem) | [CycleDetection.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/CycleDetection.java) | | | Linked List | [Find Merge Point of Two Lists](https://www.hackerrank.com/challenges/find-the-merge-point-of-two-joined-linked-lists/problem) | [FindMergePointOfTwoLists.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/FindMergePointOfTwoLists.java) | | | Linked List | [Inserting a Node Into a Sorted Doubly Linked List](https://www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem) | [InsertingANodeIntoASortedDoublyLinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/InsertingANodeIntoASortedDoublyLinkedList.java) | | | Linked List | [Reverse a doubly linked list](https://www.hackerrank.com/challenges/reverse-a-doubly-linked-list/problem) | [ReverseADoublyLinkedList.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/linkedlists/ReverseADoublyLinkedList.java) | | | Tries | [Contacts](https://www.hackerrank.com/challenges/contacts) | [Contacts.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/tries/Contacts.java) | | | Tries | [No Prefix Set](https://www.hackerrank.com/challenges/no-prefix-set/problem) | [NoPrefixSet.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/tries/NoPrefixSet.java) | | | Queues | [Queue using Two Stacks](https://www.hackerrank.com/challenges/queue-using-two-stacks) | [QueueUsingTwoStacks.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/queues/QueueUsingTwoStacks.java) | | | Heaps | [QHEAP1](https://www.hackerrank.com/challenges/qheap1/problem) | [QHEAP1.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/heaps/QHEAP1.java) | | | Heaps | [Jesse and Cookies](https://www.hackerrank.com/challenges/jesse-and-cookies/problem) | [JesseAndCookies.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/heaps/JesseAndCookies.java) | | | Heaps | [Find the Running Median](https://www.hackerrank.com/challenges/find-the-running-median) | [FindTheRunningMedian.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/heaps/FindTheRunningMedian.java) | | | Disjoint Set | [Merging Communities](https://www.hackerrank.com/challenges/merging-communities/problem) | [MergingCommunities.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/disjointsets/MergingCommunities.java) | | | Disjoint Set | [Components in a graph](https://www.hackerrank.com/challenges/find-the-running-median) | [ComponentsInAGraph.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/DataStructures/src/main/java/com/javaaid/hackerrank/solutions/datastructures/disjointsets/ComponentsInAGraph.java) | | # GENERAL PROGRAMMING | Subdomain | Challenge | Solution | Video Explaination | |:---------------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------:| | Basic Programming | [Solve Me First](https://www.hackerrank.com/challenges/solve-me-first) | [SolveMeFirst.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/SolveMeFirst.java) | [Tutorial](https://youtu.be/iHhFPu7h7Ic) | | Basic Programming | [Staircase](https://www.hackerrank.com/challenges/staircase) | [Staircase.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/Staircase.java) | [Tutorial](https://youtu.be/gDltV7pJw7A) | | Basic Programming | [Plus Minus](https://www.hackerrank.com/challenges/plus-minus) | [PlusMinus.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/PlusMinus.java) | [Tutorial](https://youtu.be/aLS4HYPfzUw) | | Basic Programming | [Diagonal Difference](https://www.hackerrank.com/challenges/diagonal-difference) | [DiagonalDifference.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DiagonalDifference.java) | [Tutorial](https://youtu.be/f6bTIsj9ne8) | | Basic Programming | [A Very Big Sum](https://www.hackerrank.com/challenges/a-very-big-sum) | [AVeryBigSum.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/AVeryBigSum.java) | [Tutorial](https://youtu.be/GwfSRZB1ZJM) | | Basic Programming | [Simple Array Sum](https://www.hackerrank.com/challenges/simple-array-sum/problem) | [SimpleArraySum.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/SimpleArraySum.java) | [Tutorial](https://youtu.be/bRtxlFZmVZU) | | Basic Programming | [Compare the Triplets](https://www.hackerrank.com/challenges/compare-the-triplets/problem) | [CompareTheTriplets.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/CompareTheTriplets.java) | [Tutorial](https://youtu.be/rFUZAtwXiII) | | Basic Programming | [Divisible Sum Pairs](https://www.hackerrank.com/challenges/divisible-sum-pairs/problem) | [DivisibleSumPairs.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DivisibleSumPairs.java) | | | Basic Programming | [Kangaroo](https://www.hackerrank.com/challenges/kangaroo/problem) | [Kangaroo.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/Kangaroo.java) | [Tutorial](https://youtu.be/52R2pLDjUBw) | | Basic Programming | [Drawing Book](https://www.hackerrank.com/challenges/drawing-book/problem) | [DrawingBook.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DrawingBook.java) | [Tutorial](https://youtu.be/aM2Y2PeXrhk) | | Basic Programming | [Birthday Cake Candles](https://www.hackerrank.com/challenges/birthday-cake-candles/problem) | [BirthdayCakeCandles.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BirthdayCakeCandles.java) | [Tutorial](https://youtu.be/1gxFE9EfanE) | | Basic Programming | [Bon Appétit](https://www.hackerrank.com/challenges/bon-appetit/problem) | [BonAppétit.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BonAppétit.java) | | | Basic Programming | [Sock Merchant](https://www.hackerrank.com/challenges/sock-merchant/problem) | [SockMerchant.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/SockMerchant.java) | [Tutorial](https://youtu.be/NPMxxSyE7jM) | | Basic Programming | [Apple and Orange](https://www.hackerrank.com/challenges/apple-and-orange/problem) | [AppleAndOrange.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/AppleAndOrange.java) | | | Basic Programming | [Between Two Sets](https://www.hackerrank.com/challenges/between-two-sets/problem) | [BetweenTwoSets.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BetweenTwoSets.java) | | | Basic Programming | [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem) | [MiniMaxSum.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/MiniMaxSum.java) | [Tutorial](https://youtu.be/CNL1WzrtxGY) | | Basic Programming | [Grading Students](https://www.hackerrank.com/challenges/grading/problem) | [GradingStudents.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/GradingStudents.java) | | | Basic Programming | [Breaking the Records](https://www.hackerrank.com/challenges/breaking-best-and-worst-records/problem) | [BreakingTheRecords.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BreakingTheRecords.java) | | | Basic Programming | [Migratory Birds](https://www.hackerrank.com/challenges/migratory-birds/problem) | [MigratoryBirds.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/MigratoryBirds.java) | | | Basic Programming | [Birthday Chocolate](https://www.hackerrank.com/challenges/the-birthday-bar/problem) | [BirthdayChocolate.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BirthdayChocolate.java) | | | Basic Programming | [Time Conversion](https://www.hackerrank.com/challenges/time-conversion/problem) | [TimeConversion.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/TimeConversion.java) | [Tutorial](https://youtu.be/MFvX3sLsHNY) | | Basic Programming | [Library Fine](https://www.hackerrank.com/challenges/library-fine/problem) | [LibraryFine.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/LibraryFine.java) | | | Basic Programming | [Save the Prisoner!](https://www.hackerrank.com/challenges/save-the-prisoner/problem) | [SaveThePrisoner.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/SaveThePrisoner.java) | [Tutorial](https://youtu.be/LeNU3WjrV_w) | | Basic Programming | [Jumping on the Clouds: Revisited](https://www.hackerrank.com/challenges/jumping-on-the-clouds-revisited/problem) | [JumpingOnTheCloudsRevisited.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/JumpingOnTheCloudsRevisited.java) | | | Basic Programming | [Counting Valleys](https://www.hackerrank.com/challenges/counting-valleys/problem) | [CountingValleys.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/CountingValleys.java) | [Tutorial](https://youtu.be/MMmFELo0QjM) | | Basic Programming | [Viral Advertising](https://www.hackerrank.com/challenges/strange-advertising/problem) | [ViralAdvertising.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ViralAdvertising.java) | | | Basic Programming | [Beautiful Days at the Movies](https://www.hackerrank.com/challenges/beautiful-days-at-the-movies/problem) | [BeautifulDaysAtTheMovies.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BeautifulDaysAtTheMovies.java) | | | Basic Programming | [Electronics Shop](https://www.hackerrank.com/challenges/electronics-shop/problem) | [ElectronicsShop.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ElectronicsShop.java) | | | Basic Programming | [Cats and a Mouse](https://www.hackerrank.com/challenges/cats-and-a-mouse/problem) | [CatsAndAMouse.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/CatsAndAMouse.java) | [Tutorial](https://youtu.be/WyyirZT5oik) | | Basic Programming | [Day of the Programmer](https://www.hackerrank.com/challenges/day-of-the-programmer/problem) | [DayOfTheProgrammer.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DayOfTheProgrammer.java) | | | Basic Programming | [The Hurdle Race](https://www.hackerrank.com/challenges/the-hurdle-race/problem) | [TheHurdleRace.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/TheHurdleRace.java) | | | Basic Programming | [Utopian Tree](https://www.hackerrank.com/challenges/utopian-tree/problem) | [UtopianTree.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/UtopianTree.java) | [Tutorial](https://youtu.be/C0YaIr8_mQU) | | Basic Programming | [Service Lane](https://www.hackerrank.com/challenges/service-lane/problem) | [ServiceLane.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ServiceLane.java) | | | Basic Programming | [Circular Array Rotation](https://www.hackerrank.com/challenges/circular-array-rotation/problem) | [CircularArrayRotation.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/CircularArrayRotation.java) | | | Basic Programming | [Sherlock and Squares](https://www.hackerrank.com/challenges/sherlock-and-squares/problem) | [SherlockAndSquares.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/SherlockAndSquares.java) | | | Basic Programming | [Angry Professor](https://www.hackerrank.com/challenges/angry-professor/problem) | [AngryProfessor.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/AngryProfessor.java) | [Tutorial](https://youtu.be/3hvzKDJQypI) | | Basic Programming | [Extra Long Factorials](https://www.hackerrank.com/challenges/extra-long-factorials/problem) | [ExtraLongFactorials.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ExtraLongFactorials.java) | | | Basic Programming | [Minimum Distances](https://www.hackerrank.com/challenges/minimum-distances/problem) | [MinimumDistances.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/MinimumDistances.java) | [Tutorial](https://youtu.be/BWpq-WPL1kw) | | Basic Programming | [Non-Divisible Subset](https://www.hackerrank.com/challenges/non-divisible-subset/problem) | [NonDivisibleSubset.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/NonDivisibleSubset.java) | | | Basic Programming | [Beautiful Triplets](https://www.hackerrank.com/challenges/beautiful-triplets/problem) | [BeautifulTriplets.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ExtraLongFactorials.java) | | | Basic Programming | [Jumping on the Clouds](https://www.hackerrank.com/challenges/jumping-on-the-clouds/problem) | [JumpingOnTheClouds.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/JumpingOnTheClouds.java) | [Tutorial](https://youtu.be/aY3UcgrHXrE) | | Basic Programming | [Equalize the Array](https://www.hackerrank.com/challenges/equality-in-a-array/problem) | [EqualizeTheArray.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/EqualizeTheArray.java) | [Tutorial](https://youtu.be/hDhf04AJIRs) | | Basic Programming | [Designer PDF Viewer](https://www.hackerrank.com/challenges/designer-pdf-viewer/problem) | [DesignerPDFViewer.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DesignerPDFViewer.java) | | | Basic Programming | [Forming a Magic Square](https://www.hackerrank.com/challenges/magic-square-forming/problem) | [FormingAMagicSquare.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/FormingAMagicSquare.java) | | | Basic Programming | [Repeated String](https://www.hackerrank.com/challenges/repeated-string/problem) | [RepeatedString.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/RepeatedString.java) | [Tutorial](https://youtu.be/d5xLkTvJDWY) | | Basic Programming | [Bitwise AND](https://www.hackerrank.com/challenges/linkedin-practice-bitwise-and/problem) | [BitwiseAND.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BitwiseAND.java) | | | Basic Programming | [Divisible Pairs Sum](https://www.hackerrank.com/challenges/linkedin-practice-divisible-sum-pairs/problem) | [DivisiblePairsSum.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DivisiblePairsSum.java) | | | Basic Programming | [Append and Delete](https://www.hackerrank.com/challenges/append-and-delete/problem) | [AppendAndDelete.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/AppendAndDelete.java) | | | Basic Programming | [Picking Numbers](https://www.hackerrank.com/challenges/picking-numbers/problem) | [PickingNumbers.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/PickingNumbers.java) | [Tutorial](https://youtu.be/PtFAJTCKNn8) | | Basic Programming | [Climbing the Leaderboard](https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem) | [ClimbingTheLeaderboard.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ClimbingTheLeaderboard.java) | [Tutorial](https://youtu.be/CAyXHTqBIBU) | | Basic Programming | [Sequence Equation](https://www.hackerrank.com/challenges/permutation-equation/problem) | [SequenceEquation.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/SequenceEquation.java) | | | Basic Programming | [Find Digits](https://www.hackerrank.com/challenges/find-digits/problem) | [FindDigits.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/FindDigits.java) | [Tutorial](https://youtu.be/QSQRJ41xm6k) | | Basic Programming | [Chocolate Feast](https://www.hackerrank.com/challenges/chocolate-feast/problem) | [ChocolateFeast.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ChocolateFeast.java) | | | Basic Programming | [Cut the sticks](https://www.hackerrank.com/challenges/cut-the-sticks/problem) | [CutTheSticks.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/CutTheSticks.java) | | | Basic Programming | [ACM ICPC Team](https://www.hackerrank.com/challenges/acm-icpc-team/problem) | [ACMICPCTeam.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ACMICPCTeam.java) | [Tutorial](https://youtu.be/0THr0OGqSDY) | | Basic Programming | [Taum and B'day](https://www.hackerrank.com/challenges/taum-and-bday/problem) | [TaumAndBday.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/TaumAndBday.java) | | | Basic Programming | [The Time in Words](https://www.hackerrank.com/challenges/the-time-in-words/problem) | [TheTimeInWords.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/TheTimeInWords.java) | | | Basic Programming | [Flatland Space Stations](https://www.hackerrank.com/challenges/flatland-space-stations/problem) | [FlatlandSpaceStations.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/FlatlandSpaceStations.java) | | | Basic Programming | [Lisa's Workbook](https://www.hackerrank.com/challenges/lisa-workbook/problem) | [LisasWorkbook.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/LisasWorkbook.java) | | | Basic Programming | [Fair Rations](https://www.hackerrank.com/challenges/fair-rations/problem) | [FairRations.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/FairRations.java) | | | Basic Programming | [Manasa and Stones](https://www.hackerrank.com/challenges/manasa-and-stones/problem) | [ManasaAndStones.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/ManasaAndStones.java) | | | Basic Programming | [Cavity Map](https://www.hackerrank.com/challenges/cavity-map/problem) | [CavityMap.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/CavityMap.java) | | | Basic Programming | [The Grid Search](https://www.hackerrank.com/challenges/the-grid-search/problem) | [TheGridSearch.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/TheGridSearch.java) | | | Basic Programming | [Happy Ladybugs](https://www.hackerrank.com/challenges/happy-ladybugs/problem) | [HappyLadybugs.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/HappyLadybugs.java) | | | Basic Programming | [Strange Counter](https://www.hackerrank.com/challenges/strange-code/problem) | [StrangeCounter.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/StrangeCounter.java) | | | Basic Programming | [Consecutive 1's in Binary Numbers](https://www.hackerrank.com/challenges/linkedin-practice-binary-numbers/problem) | [Consecutive1sInBinaryNumbers.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/Consecutive1sInBinaryNumbers.java) | [Tutorial](https://youtu.be/bc7cxeDy308) | | Basic Programming | [Bigger is Greater](https://www.hackerrank.com/challenges/bigger-is-greater/problem) | [BiggerIsGreater.java](https://github.com/Java-aid/Hackerrank-Solutions/tree/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/BiggerIsGreater.java) | [Tutorial](https://youtu.be/BMbeeB_57Pk) | # IMPLEMENTATION | Subdomain | Challenge | Solution | Video Explaination | |:---------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------:| | Brute Force | [Day of the Programmer](https://www.hackerrank.com/challenges/day-of-the-programmer/problem) | [DayOfTheProgrammer.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/DayOfTheProgrammer.java) | | | Brute Force | [Pangrams](https://www.hackerrank.com/challenges/pangrams/problem) | [Pangrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/Pangrams.java) | | | Brute Force | [Climbing the Leaderboard](https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem) | [ClimbingTheLeaderboard.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/ClimbingTheLeaderboard.java) | [Tutorial](https://youtu.be/CAyXHTqBIBU) | | Brute Force | [Strings: Making Anagrams](https://www.hackerrank.com/challenges/ctci-making-anagrams/problem) | [StringsMakingAnagrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/StringsMakingAnagrams.java) | | | Brute Force | [Encryption](https://www.hackerrank.com/challenges/encryption/problem) | [Encryption.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/Encryption.java) | | | Brute Force | [Making Anagrams](https://www.hackerrank.com/challenges/making-anagrams/problem) | [MakingAnagrams.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Implementation/src/main/java/org/javaaid/hackerrank/solutions/implementation/bruteforce/MakingAnagrams.java) | # INTERVIEW PREPARATION KIT | Subdomain | Challenge | Solution | Video Explaination | |:-----------------------------------:|:----------------------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------:| | Dictionaries and Hashmaps | [Count Triplets](https://www.hackerrank.com/challenges/count-triplets-1) | [CountTriplets.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Interview-Preparation-Kit/src/main/java/com/javaaid/dictionaries/CountTriplets.java) | [Tutorial](https://youtu.be/tBFZMaWP0W8) | | Search | [Triple sum](https://www.hackerrank.com/challenges/triple-sum/problem) | [TripleSum.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/Interview-Preparation-Kit/src/main/java/com/javaaid/search/TripleSum.java) | [Tutorial](https://youtu.be/pVkHLciuank) | | String Manipulation | [Common Child](https://www.hackerrank.com/challenges/common-child/problem) | [CommonChild.java](https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings/CommonChild.java) | [Tutorial](https://youtu.be/ItRZRx8kvwY) | # TOP 10 LEARNING RESOURCES 1)[ Cracking the Coding Interview ](https://amzn.to/2LGrKJ0) 2)[ Algorithms Hardcover ](https://amzn.to/2pIV6Ov) 3)[ The Algorithm Design Manual ](https://amzn.to/2WXjZlo) 4)[ Data Structures & Algorithms in Java ](https://amzn.to/2njeelm) 5)[ Data Structures and Algorithms Made Easy ](https://amzn.to/2LKty3O) 6)[ Grokking Algorithms ](https://amzn.to/2ACb6Ee) 7)[ Dynamic Programming for Coding Interviews ](https://amzn.to/2M8uT3m) 8)[ Introduction to Algorithms ](https://amzn.to/2ocetPA) 9)[ Elements of Programming Interviews in Java ](https://amzn.to/2M9Cu1I) 10)[ Programming Interviews Exposed ](https://amzn.to/2MexWXK) DISCLAIMER: This above mentioned resources have affiliate links, which means if you buy one of the product from my links, I’ll receive a small commission. This helps support the channel and allows us to continue to add more tutorial. Thank you for the support! *NOTE: All above shared learning resources are best of my knowledge as I have personally read all except one Introduction to Algorithms.
1
McJty/YouTubeModdingTutorial
The source code for McJty's YouTube modding tutorial
null
# YouTubeModdingTutorial The source code for McJty's YouTube modding tutorial
1
cplain/augmented-reality-tutorial
a simple augmented reality tutorial I created with Ali Muzaffar (https://github.com/atgheb) it is split into four stages
null
How to make a simple augmented reality app =============================================== by Coby Plain and Ali Muzaffar Overview --------------- This tutorial will over the following points - How to get compass data - How to get GPS location - How to do a basic image overlay – and why this is important - Using GPS and compass data to interpret points around you - Plotting points on the screen - Putting it all together Let's get started ------------------- Open a new project and set up the permissions in the `AndroidManifest.xml`. We will need access to the camera as well as both the course and fine location. <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-feature android:name="android.hardware.camera" required="true" /> <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" > We will be targeting devices using Gingerbread (Android Version 2.3, API 10) so to adhere to this we will not be using the latest sensor API. Thus you will note that some of the code we will use is deprecated - so again this is so we can keep the code backwards compatible. Using the compass and GPS ----------------------------- To use the compass we will need to use the sensor manager. We will need to declare this in our main activity using the following code: private SensorManager mSensorManager; private Sensor mSensor; private final SensorEventListener mListener = new SensorEventListener() { public void onSensorChanged(SensorEvent event) { Log.d(TAG, "sensorChanged (" + event.values[0] + ", " + event.values[1] + ", } public void onAccuracyChanged(Sensor sensor, int accuracy) { } }; Right now it doesn't do much. The method `onSensorChanged()` is where we are going to be getting all our compass data, it will be called every time the compass detects a change. All Android devices have super sensitive compasses so you may want to add a little something to make it limit itself but for now we will leave it the way it is. The other thing we will need to declare is a `LocationManager`, this will be handling all of our GPS data. LocationManager locMgr; Now that we have them both declared we initialise them in `onCreate()`. mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); setContentView(R.layout.activity_main); locMgr = (LocationManager) this.getSystemService(LOCATION_SERVICE); // <2> LocationProvider high = locMgr.getProvider(locMgr.getBestProvider(LocationUtils.createFineCriteria(), true)); // using high accuracy provider... to listen for updates locMgr.requestLocationUpdates(high.getName(), 0, 0f, new LocationListener() { public void onLocationChanged(Location location) { // do something here to save this new location } public void onStatusChanged(String s, int i, Bundle bundle) { } public void onProviderEnabled(String s) { // try switching to a different provider } public void onProviderDisabled(String s) { // try switching to a different provider } }); As you can see the `LocationManager` uses a helper class called `LocationUtils` this can be pulled into your project from anyone of the projects in this repo. On Android location can be either coarse or fine. Course location is a rough estimate of your location based on Wi-Fi or mobile connections, the advantage of course is it gets your location very quickly. Fine location is very precise - normally around 50 meters variance, this is determined using the GPS on a device. While fine location data is far more accurate it does take a while to determine and thus if you use just it your app could seem very slow. A smarter way is to use your coarse location until you have a fix with the GPS. As you can see int the listener, right now we aren't doing anything with the location data but this will change soon. Before we move on it is important to know that using a resource like the compass is exactly the same as using a resource like the camera. Other apps can't use it unless we give it up. If the user backgrounds our app it's pretty safe to say that we don't still need the compass so it is good practice to release it in `onPause()`. This also means we will need it back again in `onResume()` @Override protected void onResume() { super.onResume(); mSensorManager.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_GAME); } @Override protected void onPause() { mSensorManager.unregisterListener(mListener); super.onPause(); } So if you run your project now you will see a blank screen! Not very interesting..... But if you look in your logcat you should be able to see a huge stream of compass data. You should be able to see the first column change as you turn your device around - this is the data we will be working with. For something more complex you could also use the other columns, I suggest you take a moment to have a play and see how it all works. - The code up to here matches the first step in the repo. The next step ---------------------------- So we have compass data and we have location data but we aren't doing anything with it. To make an augmented reality app we will need to do some drawing, so let’s get it all ready! The second project in the repo you will has a class called `dpiUtils` this is a helper class like `locationUtils` we won't be going over it in detail so just drop it into your project. I do recommend having a peek inside to see how it all works, you may find a use for it somewhere else! While your dragging classes across also grab `CameraSurfaceView` this class is simply eye candy for our app, without it everything still works but it's not as nice. Our `CameraSurfaceView` is just a slightly modified version of the `CamerSurfaceView` from the Google API demos, so we won't go through it either. The last thing we need in getting set up is a place to draw. So create a new class called `DrawSurfaceView` that extends `View`. This is where all the interesting stuff will be happening. Composing the layout --------------------- In our layout xml file we will now need to add the two new views. To have it look like the app is 'drawing' on the camera we will need to put them over the top of one another. One great way of doing this is using a `FrameLayout` however you could just as easily use a `RelativeLayout`. Make sure to put the camera first, otherwise it will be drawn over our `DrawSurfaceView` and we won't see anything. So our layout should look like this: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <com.cobyplain.augmentreality.CameraSurfaceView android:id="@+id/cameraSurfaceView" android:layout_width="fill_parent" android:layout_height="fill_parent" /> <com.cobyplain.augmentreality.DrawSurfaceView android:id="@+id/drawSurfaceView" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </FrameLayout> Send the compass data ----------------------- Ok so we are going to take a slight detour now to make sure we give our `DrawSurfaceView` everything we will need later on. First we will need to declare and initialise our `DrawSurfaceView` in the main activity. private DrawSurfaceView mDrawView; // in onCreate() mDrawView = (DrawSurfaceView) findViewById(R.id.drawSurfaceView); now we have access to the `DrawSurfaceView` we can start passing data to it! Remember the `SensorManager`? Now we need to go back and give it some real purpose. private final SensorEventListener mListener = new SensorEventListener() { public void onSensorChanged(SensorEvent event) { if (mDrawView != null) { mDrawView.setOffset(event.values[0]); mDrawView.invalidate(); } } public void onAccuracyChanged(Sensor sensor, int accuracy) { } }; You can see here that re have replaced the debug output with a `setOffset()` method. Don't worry about any errors, we will make `setOffset` soon. you can also see a call to invalidate `DrawSurfaceView`, what this will do is force `DrawSurfaceView` to redraw its canvas every time the compass reports a change. If you remember how the logcat looked this is very often so I suggest if your using this somewhere else you may want to do a check to see if it has moved more than a degree or something similar. For our purposes it doesn't matter. Receive the compass data ------------------------- In `DrawSurfaceView` declare and initialise a double called `OFFSET`. This will hold the current value sent by the compass. private double OFFSET = 0d; Then all we need to do is set it! public void setOffset(float offset) { this.OFFSET = offset; } super easy! The same for our location ----------------------------- In `onLocationChanged` our `LocationManager` needs: mDrawView.setMyLocation(location.getLatitude(), location.getLongitude()); mDrawView.invalidate(); and in the `DrawSurfaceView` public void setMyLocation(double latitude, double longitude) { me.latitude = latitude; me.longitude = longitude; } Don't worry about `me`, we will be setting this up next. Having something to draw --------------------------- So we have our camera, we have our canvas and we have our data, so what's missing? A location to draw! We will be creating an object to hold all the information pertaining to each location we want to draw. This could contain anything from a name to a picture to a layout, all we need is a latitude, a longitude, a name and x, y coordinates for our purposes. So create a class called `Point`, it should look like this: public class Point { public double longitude = 0f; public double latitude = 0f; public String description; public float x, y = 0; public Point(double lat, double lon, String desc) { this.latitude = lat; this.longitude = lon; this.description = desc; } } I will say now that this class really should have 'getters and setters'. As this tutorial was originally made and delivered as a presentation we kept it simple for the interest of time. If you do use 'getters and setters' (and you really should) remember this later when we access these variables. Now what we will do is set up some `Point`s to use. We are going to hard code these values for demonstration but you could easily work in values from a web service or another source. So in our `DrawSurfaceView` public static ArrayList<Point> props = new ArrayList<Point>(); static { props.add(new Point(90d, 110.8000, "North Pole")); props.add(new Point(-90d, -110.8000, "South Pole")); props.add(new Point(-33.870932d, 151.8000, "East")); props.add(new Point(-33.870932d, 150.8000, "West")); } and we will also make a `Point` for our device Point me = new Point(-33.870932d, 151.204727d, "Me"); The initial latlong for `me` is arbitrary as we set it using our `LocationManager` before it is used. Also the East and West points will look a little strange to anyone not in the centre of Sydney, they are dummy points we used for example - if you want you could look up the latlong of points to the east and west of you and use them. Setting up bitmaps and paint -------------------------------- So we have our points, now we need something to represent them with. In the repo under steps 2, 3 and 4 you should find our resources (they won't change) which you will need to copy into your project - or you can use images of your own! First we will need to declare the bitmaps and the paint we will use Paint mPaint = new Paint(); private Bitmap[] mSpots, mBlips; private Bitmap mRadar; The spots will be drawn on the screen and the blips will be used for a radar. Now let’s initialise them in our `DrawSurfaceView' constructor: mPaint.setColor(Color.GREEN); mPaint.setTextSize(50); mPaint.setStrokeWidth(DpiUtils.getPxFromDpi(getContext(), 2)); mPaint.setAntiAlias(true); mRadar = BitmapFactory.decodeResource(context.getResources(), R.drawable.radar); mSpots = new Bitmap[props.size()]; for (int i = 0; i < mSpots.length; i++) mSpots[i] = BitmapFactory.decodeResource(context.getResources(), R.drawable.dot); mBlips = new Bitmap[props.size()]; for (int i = 0; i < mBlips.length; i++) mBlips[i] = BitmapFactory.decodeResource(context.getResources(), R.drawable.blip); it is also very important to know that when we set up a `View` in a layout we need to use a different constructor from normal. It will look like this before you fill it: public DrawSurfaceView(Context context, AttributeSet set) { super(context, set); } Screen width and height ------------------------------ To do our drawing we will also need the screen width and height. This is so we have values we can use to position the points. First we will declare two doubles called `screenWidth` and `screenHeight` private double screenWidth, screenHeight = 0d; then we set them in `onSizeChanged` - this also means if you want the user to be able to change the orientation of the app the values will be updated to the new width and height. @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); screenWidth = (double) w; screenHeight = (double) h; } Basic drawing ------------------------ We now have everything we need for simple drawing. As `DrawSurfaceView` extends `View` is has access to `onDraw()`, this is what does our drawing and is also what gets called when `DrawSurfaceView` is invalidated. We will override `onDraw()` and put in this: for (int i = 0; i < mBlips.length; i++) { Bitmap blip = mBlips[i]; //we aren't drawing these yet Bitmap spot = mSpots[i]; Point u = props.get(i); if (spot == null || blip == null) continue; int spotCentreX = spot.getWidth() / 2; int spotCentreY = spot.getHeight() / 2; u.x = (float)screenWidth/3 * (i) - spotCentreX; u.y = (float)screenHeight/2 + (50*i) - spotCentreY; canvas.drawBitmap(spot, u.x, u.y, mPaint); canvas.drawText(u.description, u.x, u.y, mPaint); } You can see that we don't use `OFFSET` this is because this isn't what our final `onDraw()` will look like. What we do is loop through all the props and for each one assign a x and y value. This translates to an x and y position on the screen. We need to subtract the centre of the `spot`s because when we give an x and y position to draw an image from it is the position of the top left corner of the image. You can see here we have split the screen up and placed the `spot`s equally far apart across the screen. - The code up to here matches the first second in the repo. Your turn -------------- So this is the part of our tutorial where you have a challenge (of course you can skip it but I hope you give it a shot). Step 3 in the repo is set up with all the code from before but the `onDraw()` is empty. Also you will see there are two new methods `distInMeters()` and `bearing()`. These two methods are going to be used to determine where on the screen to draw the points. - Your first challenge is to move the `spot`s across the screen and have them be positioned where they are in the real world. You won't yet need to use `distInMeters()` How you do it ---------------- for (int i = 0; i < mSpots.length; i++) { Bitmap spot = mSpots[i]; Point u = props.get(i); if (spot == null) continue; double angle = bearing(me.latitude, me.longitude, u.latitude, u.longitude) - OFFSET; double xPos, yPos; if(angle < 0) angle = (angle+360)%360; double posInPx = angle * (screenWidth / 90d); int spotCentreX = spot.getWidth() / 2; int spotCentreY = spot.getHeight() / 2; xPos = posInPx - spotCentreX; if (angle <= 45) u.x = (float) ((screenWidth / 2) + xPos); else if (angle >= 315) u.x = (float) ((screenWidth / 2) - ((screenWidth*4) - xPos)); else u.x = (float) (float)(screenWidth*9); //somewhere off the screen u.y = (float)screenHeight/2 + spotCentreY; canvas.drawBitmap(spot, u.x, u.y, mPaint); //camera spot canvas.drawText(u.description, u.x, u.y, mPaint); //text } So you can see we loop through each point like before but this time we use the `angle` to position the spot. As the `OFFSET` is constantly changing, so too is the `angle` and thus the `spot` moves. Round two! --------------- - You second challenge is to use the same method and thinking to move the points around on the radar. This time you will need `distInMeters()`. Also remember the radar is circular and you will need to think about how points move around it. How you do it ----------------- for (int i = 0; i < mBlips.length; i++) { Bitmap blip = mBlips[i]; Point u = props.get(i); double dist = distInMetres(me, u); if (blip == null) continue; if(dist > 70) dist = 70; //we have set points very far away for demonstration double angle = bearing(me.latitude, me.longitude, u.latitude, u.longitude) - OFFSET; double xPos, yPos; if(angle < 0) angle = (angle+360)%360; xPos = Math.sin(Math.toRadians(angle)) * dist; yPos = Math.sqrt(Math.pow(dist, 2) - Math.pow(xPos, 2)); if (angle > 90 && angle < 270) yPos *= -1; int blipCentreX = blip.getWidth() / 2; int blipCentreY = blip.getHeight() / 2; xPos = xPos - blipCentreX; yPos = yPos + blipCentreY; canvas.drawBitmap(blip, (radarCentreX + (int) xPos), (radarCentreY - (int) yPos), mPaint); //radar blip } You can see here we have used some trig to position the radar blips but most of the code is the same. You can see we use Pythagoras to position `yPos` this will always return a positive value and thus we need to invert it to draw on the bottom half of the radar. A better way to position `yPos` would be to use the line: yPos = Math.cosMath.toRadians(angle)) * xPos; and then there would be no need to invert the value. Finally ----------- We have some working code, we can optimise it a lot - a few ways have been mentioned already but there are a number of other ways also. The last thing to do is combine the radar loop and the spot loop into one. An example of this can be seen in Step 4 in the repo. #####Who we are Coby Plain - apps on Google Play at <http://bit.ly/cplainapps> Ali Muzaffar - apps on Google Play at <http://bit.ly/amplayapps> - This tutorial was designed to be presented at an Android Developers meet-up in Sydney, Australia. I have converted it into written form so that the repo can be used by others. If for any reason it is unclear or confusing I apologise
1
skinny85/graalvm-truffle-tutorial
The code for the series of tutorials on my blog about the GraalVM Truffle language implementation framework
null
null
0
Tutorials-By-Kaupenjoe/Fabric-Tutorial-1.20.X
Repository for my Fabric 1.20.X Tutorial Series on YouTube. Playlist link below!
fabric-mod minecraft-mod tutorial-code tutorial-project
# Fabric-Tutorial-1.20.X
1
Pankaj-Str/JAVA-SE-Tutorial-codeswithpankaj
Pankaj-Str's GitHub, 'JAVA-SE-Tutorial-codeswithpankaj,' is a concise compendium of Java SE tutorials. Ideal for developers and learners, it offers clear and insightful code snippets, providing an efficient pathway to enhance Java programming skills. A valuable resource for mastering essential concepts
collections concurrency corejava data-structures java javase javatutorials object-oriented-programming oop
# Java Programming Topics This is a list of Java programming topics for a study plan or course. | Day | Topic Name | Description | | --- | --------------------- | ----------------------------------------------------------- | | 01 | Introduction | Introduction to Java: Learn the basics of Java, its history, features, and how it runs on the Java Virtual Machine (JVM). | | 02 | Operators | Operators in Java: Explore various operators for performing operations like arithmetic, relational, logical, and bitwise in Java. | | 03 | If_Else | If-Else Statements: Understand how to use if-else statements for conditional execution of code based on specific conditions. | | 04 | SwitchStatement | Switch Statements: Dive into switch statements for efficient selection among multiple code blocks based on an expression's value. | | 05 | Java Loop | Loops in Java: Master the usage of for, while, and do-while loops for repetitive tasks in Java programs. | | 06 | Arrays | Arrays in Java: Learn about arrays for storing multiple values of the same data type and common array operations. | | 07 | Function | Functions and Methods: Explore the creation and usage of functions (methods) for reusable code in Java. | | 08 | BreakContinue | Break and Continue: Understand the "break" and "continue" statements for controlling loop execution. | | 09 | ClassObjects | Classes and Objects: Learn how to define classes, create objects, and access their properties and methods. | | 10 | Constructor | Constructors: Explore constructors used to initialize objects when they are created. | | 11 | Strings | String Manipulation: Master string manipulation techniques, including concatenation, substring, and more. | | 12 | AccessModifiers | Access Modifiers: Understand access modifiers (public, private, protected, default) for controlling visibility in Java. | | 13 | ThisKeyword | 'this' Keyword: Learn how to use the "this" keyword to reference the current instance of a class. | | 14 | FinalKeyword | 'final' Keyword: Explore the usage of the "final" keyword to make classes, methods, and variables immutable. | | 15 | Recursion_Instanceof | Recursion and 'instanceof': Delve into recursion, a method calling itself, and use the "instanceof" operator to test object types. | | 16 | Inheritance | Inheritance: Understand how inheritance allows the creation of new classes based on existing ones, inheriting their attributes and behaviors. | | 17 | MethodOverriding | Method Overriding: Explore method overriding, which allows a subclass to provide specific implementations of inherited methods. | | 18 | SuperKeyword | 'super' Keyword: Learn how the "super" keyword is used to reference the superclass and call its methods and constructors. | | 19 | AbstractClassMethod | Abstract Classes/Methods: Understand abstract classes and methods that cannot be instantiated but provide a blueprint for subclasses. | | 20 | Interfaces | Interfaces: Learn how to define and implement interfaces, specifying a contract for classes in Java. | | 21 | Polymorphism | Polymorphism: Explore polymorphism, allowing objects of different classes to be treated as objects of a common superclass. | | 22 | Encapsulation | Encapsulation: Master the concept of bundling data and methods into classes, enhancing data security and code organization. | | 23 | NestedClassExample | Nested Classes: Explore various types of nested classes, including inner classes, static nested classes, and anonymous classes. | | 24 | MathUtility | Math Utility Classes: Understand the Math class for mathematical functions and constants in Java. | | 26 | AnonymousClass | Anonymous Classes: Learn about anonymous classes, which are used for inline implementations of interfaces or abstract classes. | | 27 | Singleton | Singleton Design Pattern: Explore the Singleton pattern to ensure a class has a single instance and provides a global point of access. | | 28 | Enum | Enumerations: Understand enums, a special data type for defining sets of constants with predefined values. | | 29 | Reflection | Reflection in Java: Learn about reflection, which allows Java code to inspect and manipulate class objects at runtime. | | 30 | ExceptionHandling | Exception Handling: Explore techniques for handling exceptions and managing errors in Java applications. | | 31 | List | Lists in Java: Understand lists, an ordered collection of elements, and how to work with them in Java. | | 32 | ArrayList | ArrayList: Learn about dynamic arrays (ArrayList) and their common operations for flexible data storage. | | 33 | Stack | Stack: Understand the stack data structure, commonly used for managing function calls and undo operations. | | 34 | Vector | Vector: Learn about the Vector class, a synchronized implementation of a dynamic array in Java. | | 35 | QueueInterface | Queue Interface: Explore the Queue interface and its implementations for managing elements in a first-in, first-out (FIFO) order. | | 36 | DequeInterface | Deque Interface: Learn about the Deque (Double-ended Queue) interface and its implementations in Java. | | 37 | LinkedList | LinkedList: Understand the LinkedList data structure for efficient insertions and deletions of elements. | | 38 | ArrayDeque | ArrayDeque: Learn about ArrayDeque, a double-ended queue implementation based on arrays. | | 39 | BlockingQueue | BlockingQueue: Explore the concept of a BlockingQueue, designed for concurrent programming. | | 40 | ArrayBlockingQueue | ArrayBlockingQueue: Learn about ArrayBlockingQueue, a thread-safe queue with a fixed capacity. | | 41 | LinkedBlockingQueue | LinkedBlockingQueue: Understand LinkedBlockingQueue, a concurrent queue based on linked nodes. | | 42 | HashMap | HashMap: Learn about the HashMap data structure for efficient key-value pair storage and retrieval. | | 43 | LinkedHashMap | LinkedHashMap: Explore the LinkedHashMap, a map that maintains the order of key-value pairs based on insertion order. | | 44 | LinkedHashMap | LinkedHashMap: A continuation of the LinkedHashMap topic, diving deeper into its usage and features. | | 45 | EnumMap | EnumMap: Understand EnumMap, a specialized map for enum keys, offering efficient and type-safe mapping. | | 46 | SortedMapInterface | Sorted Map Interface: Explore the SortedMap interface for maintaining key-value pairs in sorted order. | | 47 | NavigableMapInterface | Navigable Map Interface: Learn about the NavigableMap interface, which provides navigation and manipulation methods for sorted maps. | | 48 | TreeMap | TreeMap: Understand the TreeMap data structure, which implements NavigableMap for maintaining elements in sorted order. | | 49 | ConcurrentMapInterface | Concurrent Map Interface: Explore the ConcurrentMap interface for thread-safe key-value mappings. | | 50 | Set_Interface | Set Interface: Learn about the Set interface and its implementations, which represent collections of unique elements. | | 51 | HashSet | HashSet: Understand HashSet, a set implementation that uses a hash table for efficient element storage. | | 52 | EnumSet | EnumSet: Learn about EnumSet, a specialized set for enum elements, offering efficient and type-safe storage. | | 53 | LinkedHashSet | LinkedHashSet: Explore LinkedHashSet, which maintains the order of elements based on insertion order. | | 54 | SortedSetInterface | Sorted Set Interface: Understand the SortedSet interface for maintaining elements in sorted order without duplicates. | | 55 | NavigableSetInterface | Navigable Set Interface: Learn about the NavigableSet interface, providing navigation and manipulation methods for sorted sets. | | 56 | TreeSet | TreeSet: Understand the TreeSet, a set implementation based on a self-balancing binary search tree. | | 57 | IO_Streams | Input/Output Streams: Explore input and output streams for reading from and writing to files and other sources in Java. | | 58 | Java_Reader_Writer | Reader and Writer: Learn about the Reader and Writer classes for character-based I/O operations in Java. |
0
ArthurVin/jee-tutorial-youtube
Java EE (J2EE) Tutorial for beginners source code Java EE (J2EE) Tutorial for beginners: Spring Framework + Spring Webflow + Spring Security + JPA (Hibernate) + JSF 2.0 (PrimeFaces) + Apache Maven 2 + Apache Tomcat + Subclipse + Oracle RDBMS + Eclipse IDE
null
null
1
PaceCodes/Mixin-Tutorial
This is a tutorial repository w/cheatsheet
gradle java mixins sponge spongeforge spongepowered tutorial
# Mixin tutorial Using Mixins to Mod Minecraft Vanilla. ## System Requirements Sponge requires Java 8 update 20 or higher to run. Sponge **does not** work with Java 9 or above. We also recommend a CPU with a large single core speed and at least 2GB of RAM (higher if you plan to run with mods). We highly recommend using the 64bit Java runtime. See [Installing Java](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Java/installingJava.md) for more help with how to install Java 8. ## Setup Download the build.gradle in this repository and open it in IntelliJ IDEA. Before you do anything, make sure that you run the `wrapper` task, and go into gradle-wrapper.properties and change the number to 4.7. ForgeGradle doesn't work with newer versions of Gradle. Now,edit the following: ```gradle version = "0.1" group = "com.exampleClient" archivesBaseName = "ExampleClient" ``` `version` is the version of your client, pretty self explanatory. `group` is your base package. `archivesBaseName` should be the name of your Client. ```gradle minecraft { version = "1.8.9" tweakClass = "exampleclient.launch.ExampleTweaker" mappings = "stable_22" runDir = 'run' clientJvmArgs = ["-XX:-DisableExplicitGC"] // fast world loading makeObfSourceJar = false } ``` You can leave everything the same except for `tweakClass`. ```gradle mixin { defaultObfuscationEnv notch add sourceSets.main, "mixin.exampleClient.refmap.json" } ``` change `exampleClient` to your client name. ```gradle manifest.attributes( "MixinConfigs": 'mixins.exampleClient.json', "TweakClass": 'com.exampleClient.launch.ExampleClientTweaker', "TweakOrder": 0, "Manifest-Version": 1.0 ) ``` **Detailed Explaination.** Create a new folder where ever you want your client to be. Open up IntelliJ. Then click `New Project > Gradle > Next`. Set the `Location` to the folder you just created Copy and paste the [build.gradle](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/gradle/build.gradle) into your `build.gradle`. Then click the "Load Gradle Changes" Button on the top right. You might be noticing an error popping up in the bottom half, that's totally normal. It's because forgegradle doesn't support newer versions of gradle. To fix this, go to `gradle > wrapper > gradle-wrapper.properties` then replace whatever version is currently there, with 4.7 Now for the lengthy part. Replace all the "example" strings with your client name. Also replace the "net" packages with whatever fits you. An example is shown below. **! This MUST be done for all instances. DO NOT CHANGE ANY OF THE "mixin" OR "mixins" strings !** Once you are done, click the gradle button on the far right. Then click `Tasks > forgegradle > setupDecompWorkspace`. This will take some time. Once that process is finished, click `Tasks > forgegradle > genIntellijRuns` Click the button at the top then click `Minecraft Client` An example is shown below. Click the same button again, then click `Edit Configurations`. You will see an error saying "Class 'GradleStart not found in module 'ExampleClient'". To fix this, set the `Client` to `Client.main`. Click Apply. The error should be gone now. ## Tweaker Create a new package in `src/main/java` with the package name you've set in your `build.gradle` in this case, it would be `net.example` Create a new package named `mixins` inside the previous pacakge then create a new `java` file with whatever you named your tweaker. In this case, it's `ExampleTweaker`. **Copy the code from the tweaker below to yours.** Replace the `example` at `Mixins.addConfiguration("mixins.example.json");` (inside your tweaker) with your client name or whatever you named your package. ## Coding Mixins Now it's time to make your first mixin! Create a new file named whatever was inside your `Mixins.addConfiguration("mixins.example.json");` inside the resource folder. Then, copy the json from [here]("https://github.com/PaceCodes/Mixin-Tutorial-With-Cheatsheet/blob/main/mixins.example.json") into the json file you just created. Ok, now it's time to create an actual mixin. Create a package named `client` inside the package where your tweaker is located. Then, inside that `client` package, create a java file named `MixinMinecraft` then code mixins (example): ```java @Mixin(Minecraft.class) public class MixinMinecraft { @Inject(method = "createDisplay", at = @At("RETURN")) public void createDisplay(CallbackInfo callbackInfo) { Display.setTitle("Example Client | 1.8.9"); } } ``` # Tweaker Create a class (whatever name you want) and implement ITweaker. Look at the code below. ```java import net.minecraft.launchwrapper.ITweaker; import net.minecraft.launchwrapper.LaunchClassLoader; import org.spongepowered.asm.launch.MixinBootstrap; import org.spongepowered.asm.mixin.MixinEnvironment; import org.spongepowered.asm.mixin.Mixins; import java.io.File; import java.util.ArrayList; import java.util.List; /* Tweaker Used to Start Mixin Bootstrap - called in Launch Arguments */ public class ExampleTweaker implements ITweaker { // List of Launch Arguments for getLaunchArguments[] private final List<String> launchArguments = new ArrayList<>(); @Override public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) { this.launchArguments.addAll(args); if (!args.contains("--version") && profile != null) { launchArguments.add("--version"); launchArguments.add(profile); } if (!args.contains("--assetDir") && assetsDir != null) { launchArguments.add("--assetDir"); launchArguments.add(assetsDir.getAbsolutePath()); } if (!args.contains("--gameDir") && gameDir != null) { launchArguments.add("--gameDir"); launchArguments.add(gameDir.getAbsolutePath()); } } @Override public void injectIntoClassLoader(LaunchClassLoader classLoader) { MixinBootstrap.init(); MixinEnvironment env = MixinEnvironment.getDefaultEnvironment(); Mixins.addConfiguration("mixins.example.json"); if (env.getObfuscationContext() == null) { env.setObfuscationContext("notch"); } env.setSide(MixinEnvironment.Side.CLIENT); } @Override public String getLaunchTarget() { return "net.minecraft.client.main.Main"; } @Override public String[] getLaunchArguments() { return launchArguments.toArray(new String[0]); } } ``` The main part we want to focus on is the function `injectIntoClassLoader`. We are first initializing the MixinBootstrap. Then, we are adding our Mixin configuration. We are also switching the obfuscation context to notch's mappings. # MIXIN Cheatsheet What mixins should you use, for what purpose, and how exactly do they affect the code? _Note: the method modifications listed in these documents are what the code_ effectively _does, not what the modified bytecode will actually look like. Mixin generates additional methods in the target classes that are inlined here._ *This Cheatsheet is originally from [(2xsaiko)](https://github.com/2xsaiko/mixin-cheatsheet)* ## Table of Contents ### Injectors - [`@Inject`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/inject.md) - [`@Inject`, cancellable](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/inject-cancellable.md) - [`@Inject`, locals](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/inject-locals.md) - [`@Redirect`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/redirect.md) - [`@Overwrite`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/overwrite.md) - [`@ModifyArg`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/modify-arg.md) - [`@ModifyArgs`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/modify-args.md) - [`@ModifyVariable`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/modify-variable.md) ### Non-Injectors - [`@Invoker`](invoker.md) - [`@Accessor`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/accessor.md) - [`@Shadow`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/shadow.md) - [`@Shadow`, final](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/shadow-final.md) - [`@Shadow`, anonymous class](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/shadow-anonymous.md) - [`@At`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/at.md) - [`@Unique`](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/unique.md) ### Other helpful docs - [Changing your mixin's priority](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/mixin-priority.md) - [Mixing into classes that may not exist at runtime](https://github.com/PaceCodes/Mixin-Tutorial/blob/master/Cheatsheet/pseudo-mixin.md) # MIXINS Mixins are a way of modifying java code at runtime by adding additional behavior to classes. They enable transplanting of intended behavior into existing Minecraft objects. Mixins are necessary for all official Sponge implementations to function. A basic introduction to some of the core concepts underpinning the mixin functionality we’re using to implement Sponge is available at the [(Mixin Wiki)](https://github.com/SpongePowered/Mixin/wiki/). # Mixins and Inner Classes While you can use lambdas, anonymous and inner classes inside mixins, you cannot use an anonymous/inner class within another anonymous/inner class that is also inside a mixin, unless one of the inner classes is static. This means expressions like the following will cause mixins to fail horribly and bring death and destruction upon all that attempt to use Sponge. ```java return new Collection<ItemStack>() { @Override public Iterator<ItemStack> iterator() { return new Iterator<ItemStack>() { // Not working @Override public boolean hasNext() { // Write your code } @Override public ItemStack next() { // Write your code } }; } // Write your other methods }; ``` This applies to all classes that are annotated with @Mixin. Classes that are not touched by the mixin processor may make use of those features. There are two ways to work around this. One option is to use a separate utility class, as unlike your mixin class that utility class will still exist at runtime, while your mixin class will be merged into the specified target class. The following code therefore will work. ```java public class SampleCollection implements Collection<ItemStack> { private final TargetClass target; public SampleCollection(TargetClass target) { this.target = target; } @Override public Iterator<ItemStack> iterator() { return new Iterator<ItemStack>() { @Override public boolean hasNext() { // Write your code } @Override public ItemStack next() { // Write your code } }; } // Other methods skipped } @Mixin(TargetClass.class) public abstract class SomeMixin { public Collection<ItemStack> someFunction() { return new SampleCollection((TargetClass) (Object) this); } } ``` The other option is simply to place all of the nested inner classes directly into the mixin or one of its methods, as opposed to one inside the other. For example: ```java @Mixin(TargetClass.class) public abstract class SomeMixin { private final class SampleIterator implements Iterator<ItemStack> { @Override public boolean hasNext() { // Write your code } @Override public ItemStack next() { // Write your code } } public Collection<ItemStack> someFunction() { return new Collection<ItemStack>() { @Override public Iterator<ItemStack> iterator() { return new SampleIterator(); } // Write your other methods }; } } ``` These are basics of SpongePowered mixins.You can find more about it in their documentations. Javadocs: https://jenkins.liteloader.com/view/Other/job/Mixin/javadoc/ (The javadocs, pretty self explanatory) Wiki: https://github.com/SpongePowered/Mixin/wiki (great for learning what Mixins even are) Discord: https://discord.gg/sponge (Get help with Mixins here) *Special thanks: GloriousDuck, 2xsaiko*
1
tvarchive/cleartriptests
A tutorial for aspiring test automation engineers who wants to master Webdriver and looking for Test Automation Framework creation knowledge
null
**Introduction:** Folks we have written a tutorial for aspiring test automation engineers who wants to master Webdriver and looking for Test Automation Framework creation knowledge. The project contains bunch of chapters right from "writing your first Selenium test" to "how to implement Page Object Pattern". This is a sample framework for illustration purpose. It will demo the implementation of Java with WebDriver (aka Selenium 2) and how to write automated tests. **Target Audience:** To work and interact with this project, a basic knowledge of Java, Selenium API and GIT would be required. This tutorial is not meant to teach you Java. This is more to teach and enable you to how to write automated tests in Java using Selenium and TestNG. **Application Under Test:** We are using Cleartrip website (http://www.cleartrip.com) for automation. This website was obvious choice as it is rich with controls like Textbox, Drop down, Calendar control, Ajax wait etc. The Scenarios considered are mostly the day to day business use case where in we have used ticket booking business scenario and it's different flavors. You need to have one of the IDE either Eclipse or IntelliJ. Once you are done with cloning the project , you need to import the project. Your preferred IDE might throw some error if path to JDK is not set properly. **What you will find under this repo:** It contains certain chapters and also how a user would transition From `driver.findby` To `given(user).choosesToDoAFlightSearch();` `when(user).searchesForAOneWayJourneyWith(journeyDetails);` `then(user).hasJourneyOptionsAvailableForHisOutboundJourney();` **How to Start:** In the src folder of the project we have a README package which houses the read me for the chapters. This is a good point to start. One is supposed to read the chapters first and then browse through the Scenarios package to see the implementations. One good way to practice would be create a sample java class file and start experimenting by starting to write the test on the similar lines.
1
giakinh0823/java-programming-tutorial
Java Programming Tutorial OOP Exercises. A basic guide to learning java at FPT University for beginners
basic fpt-education fpt-university java java-core
# Java Programming Tutorial OOP Exercises **FPT University** <br/> **hwww3.ntu.edu.sg** <h2> 1. Exercises on Classes </h2> 1.1 An Introduction to Classes and Instances by Example - The Circle Class <br/> 1.2 Ex: Yet Another Circle Class <br/> 1.3 Ex: The Rectangle Class <br/> 1.4 Ex: The Employee Class <br/> 1.5 Ex: The InvoiceItem Class <br/> 1.6 Ex: The Account Class <br/> 1.7 Ex: The Date Class <br/> 1.8 Ex: The Time Class <br/> 1.9 Ex: The Ball Class <br/> <h2>2. Exercises on Composition </h2> 2.1 An Introduction to OOP Composition by Example - the Author and Book Classes <br/> 2.2 (Advanced) The Author and Book Classes Again - An Array of Objects as an Instance Variable <br/> 2.3 Ex: The Author and Book Classes - Your Turn <br/> 2.4 Ex: The Customer and Invoice classes <br/> 2.5 Ex: The Customer and Account classes <br/> 2.6 Ex: The MyPoint Class <br/> 2.7 Ex: The MyLine and MyPoint Classes <br/> 2.8 Ex: The MyCircle and MyPoint Classes <br/> 2.9 Ex: The MyTriangle and MyPoint Classes <br/> 2.10 Ex: The MyRectangle and MyPoint Classes <br/> <h2> 3. More Exercises on Classes </h2> 3.1 Ex: The MyComplex class <br/> 3.2 Ex: The MyPolynomial Class <br/> 3.3 Ex: Using JDK's BigInteger Class <br/> 3.4 Ex: The MyTime Class <br/> 3.5 Ex: The MyDate Class <br/> 3.6 Ex: Bouncing Balls - Ball and Container Classes <br/> 3.7 Ex: The Ball and Player Classes <h2>4. Exercises on Inheritance </h2> 4.1 An Introduction to OOP Inheritance by Example - The Circle and Cylinder Classes <br/> 4.2 Ex: Superclass Person and its subclasses <br/> 4.3 Ex: Point2D and Point3D <br/> 4.4 Ex: Point and MovablePoint <br/> 4.5 Ex: Superclass Shape and its subclasses Circle, Rectangle and Square <br/> 4.6 Ex: Superclass Animal and its subclasses <h2>5. Exercises on Composition vs Inheritance </h2> 5.1 Ex: The Point and Line Classes <br/> 5.2 Ex: The Circle and Cylinder Classes Using Composition <h2> 6. Exercises on Polymorphism, Abstract Classes and Interfaces </h2> 6.1 Ex: Abstract Superclass Shape and Its Concrete Subclasses <br/> 6.2 Ex: GeometricObject Interface and its Implementation Classes Circle and Rectangle <br/> 6.3 Ex: Movable Interface and its Implementation MovablePoint Class <br/> 6.4 Ex: Movable Interface and its Implementation Classes MovablePoint and MovableCircle <br/> 6.5 Ex: Interfaces Resizable and GeometricObject <br/> 6.6 Ex: Abstract Superclass Animal and its Implementation Subclasses <br/> 6.7 Ex: Another View of Abstract Superclass Animal and its Implementation Subclasses <br/> 6.8 Ex: Interface Movable and its implementation subclasses MovablePoint and MovableCircle <h2>7. More Exercises on OOP </h2> 7.1 Ex: The Discount System <br/> 7.2 Ex: Polyline of Points with ArrayList <br/> <h2>8. Exercises on Data Structures </h2> 8.1 Ex: MyIntStack
1
freeautomationlearning/Appium
This is Chirag... and this Repo for Appium code...... You can see Appium tutorial video at given you tube channel
appium appium-android appium-app appium-framework appium-ios appium-java-repl appium-tests appium-tutorials chirag
# Appium Mobile Automation Tool Hi Guys, this is Chirag Singh and this repository contains all the code which I created on the You Tube Channel "FREE AUTOMATION LEARNING". You can download the code and run these code at your machine. You can subscribe my youtube channel. See the below link for youtube channel. https://www.youtube.com/channel/UCFs7BfAeJI6MtdqzTXdA9Og
1
hoaphantn7604/react-native-dynamic-island-tutorial
How to implement Dynamic Island for React native?. Build Dynamic Island for React Native tutorial.
dynamic-island how-to-build how-to-implement live-activities react-native video-tutorial
## React Native Dynamic Island Tutorial How to implement Dynamic Island for React native.</br> React Native Dynamic Island tutorial.</br> ### Documentation - Require Xcode 14.1 or high. Working on iOS 16.1 or high.</br> - Step 1: Build Native Modules.</br> - Step 2: Build Live Activities for Dynamic Island and lock screen.</br> - Step 3: Handle action event when click button.</br> ### Version - Tag [v0.0.1](https://github.com/hoaphantn7604/react-native-dynamic-island-tutorial/tree/v0.0.1): Create Native Modules for React Native.</br> - Tag [v0.0.2](https://github.com/hoaphantn7604/react-native-dynamic-island-tutorial/tree/v0.0.2): Build Live Activities Simple.</br> - Tag [v0.0.3](https://github.com/hoaphantn7604/react-native-dynamic-island-tutorial/tree/v0.0.3): Add Deeplink.</br> - Tag [v0.0.4](https://github.com/hoaphantn7604/react-native-dynamic-island-tutorial/tree/v0.0.4): Order Live Activities.</br> ## Video tutorial: #### [Build Dynamic Island For React Native - Tutorial Step-by-Step](https://www.youtube.com/playlist?list=PLpMCFmfT7cNeAJaCEJbKktudFyuxufr2c) ![demo](./demo/react_native_dynamic_island_tutorial.jpg) ## Donate ✨ Support maintainers with a donation and help them continue with activities. <br><p><a href="https://www.buymeacoffee.com/hoaphantn"> <img align="left" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="50" width="210" alt="fateh999" /></a></p><br><br><br> [<img src="https://github.com/hoaphantn7604/file-upload/blob/master/document/profile/hoa_phan_dev_banner.png">](https://www.youtube.com/channel/UCemCdKGzUgbfsLeGFOvbVEw?sub_confirmation=1)
0
fyiernzy/UM-WIA1002
🌱For University Malaya (UM), Course Code WIA1002 (Data Structure). Include notes, questions, source code and explanation for Tutorials/ Labs (UM-WIA1002).
algorithms computer-science data-structures fundamentals-of-programming java java-8 tutorial university university-of-malaya
# WIA1002 (Data Structure) Welcome to the [**WIA1002**](https://spectrum.um.edu.my/course/view.php?id=146) (Data Structure) Github repository, which contains a range of study materials for the course. WIA1002 is offered by the [**Faculty of Computer Science and Information Technology (FCSIT)**](http://www.fsktm.um.edu.my/) at the [**Universiti Malaya (UM)**](https://www.um.edu.my/) in Malaysia. In this repository, you will find notes, questions, source code, and explanations for the Tutorials and Labs (UM-WIX1002) that accompany the course. To get started, feel free to browse through the materials and use them to supplement your learning. Hopefully that you find this repository to be helpful and informative. If you have any questions or suggestions, please do not hesitate to reach out to me. ![last_update_shield](https://img.shields.io/badge/Last%20Update-April%202023-orange) ![license_shield](https://img.shields.io/github/license/fyiernzy/UM-WIA1002) ## Couse Introduction In this course, we will be exploring data structures and algorithms using the [**`Java`**](https://dev.java/learn/) programming language. Throughout the course, we will learn about fundamental data structures such as `LinkedList`, `Stack`, `Queue`, `BinarySearchTree`, and `Graph`, as well as popular algorithms like `Bubble Sort`, `Insertion Sort`, `Selection Sort`, and `Merge sort`. To enhance your understanding of these topics, you will also be required to implement basic versions of these data structures and algorithms. This course is ideal for freshmen who are taking the [**WIA1002**](https://spectrum.um.edu.my/course/view.php?id=146) course or [**WIA1002**](https://spectrum.um.edu.my/course/view.php?id=146) learners who are looking to improve their programming skills. By the end of this course, you will have a solid understanding of data structures and algorithms, which will help you excel in your future programming endeavors. ## Repository Introduction This repository contains study materials for the [**WIA1002**](https://spectrum.um.edu.my/course/view.php?id=146) course, including notes, questions, source code, and explanations for Tutorials/Labs (UM-WIX1002). It is worth noting that this repository contains two versions of the Lab: [**Version1**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version1) and [**Version2**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version2). [**Version1**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version1) is the main Lab used throughout the course. It requires students to implement data structures and test them to ensure they function correctly. [**Version2**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version2) is an older version of the Lab, but it is more challenging and provides a deeper understanding of intriguing and typical algorithmic puzzles such as [**N Queen Problem**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version2/Lab5%20-%20Stack/Q3), [**Maze Problem**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version2/Lab5%20-%20Stack/Q6), and well-known algorithms including `Quick Sort`, `Merge Sort`, and `Heap Sort`. In addition, we will explore the shortest path algorithm in Graph, such as `Bellman-Ford Algorithm`, `Dijkstra's Algorithm`, and `A* algorithm`. In a nutshell, [**Version1**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version1) is ideal for building a solid foundation of data structures, while [**Version2**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version2) is suitable for those who want to learn more about data structures and algorithms. [**Version2**](https://github.com/fyiernzy/UM-WIA1002/tree/main/Lab/Version2) is also a great choice for those who are interested in competitive programming. Some directories in this repository may contain external JAR (Java Archive) files to provide full functionality of the code. You may download them and add them to the class path of your Integrated Development Environment (IDE). Please refer to the following documentation for more information: - [How to Add External JAR File to an IntelliJ IDEA Project?](https://www.geeksforgeeks.org/how-to-add-external-jar-file-to-an-intellij-idea-project/) - [How to put a jar in classpath in Eclipse?](https://stackoverflow.com/questions/11463354/how-to-put-a-jar-in-classpath-in-eclipse) - [How to add jar to Netbeans](https://users.cs.fiu.edu/~downeyt/webdev/netbeans.html) ## Guidance ### About `README.md` Some of the directories in this repository contain `README.md` files, which provide detailed explanations of the questions and approaches, as well as comparisons between different approaches. These files can be used to gain a comprehensive understanding of the code and its functionality. ### Forking the Repo To make it easier to access the repository even without an internet connection, you can `fork` the entire repository. By forking, you can contribute to the repository by adding more functionality, simplifying the code, adding test units, and more. You can refer to the article [**Fork a Repo**](https://docs.github.com/en/get-started/quickstart/fork-a-repo) for more details on how to fork a repository. ### Star the Repo Don't forget to `star` this repository to receive the latest updates. The repository may be updated from time to time to make the code simpler, add comments, add `README.md` files, or even add self-written notes to help others understand the code better. ### Contribution Should you wish to contribute to this repository, feel free to create a pull request. To know more about pull request and how to do it, please refer to the following GitHub Documentations: * [**About Pull Requests in GitHub**](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) * [**Creating Pull Requests**](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
0
DanGrissom/hello-world-dr-dan-java
An in-depth beginner's walk-through of the Java programming language with a transition and intro to C++. Video tutorials of this code being written from scratch and being explained in-depth can be found at hellodrdan.com (coming soon).
null
# Hello World w/ Dr. Dan - A Complete Introduction to Programming from Java to C++ (hello-world-dr-dan-java) An in-depth beginner's walk-through, taught by [Dr. Dan Grissom](http://www.dangrissom.com), of the Java programming language with a transition into (and intro to) C++. Video tutorials of this code being written from scratch and being explained in-depth can be found at [hellodrdan.com](http://www.hellodrdan.com) (coming soon). **NOTE (November 2019): Video tutorials of this code being created from scratch coming soon! [Join my e-mail list](https://mailchi.mp/e468e9e3efeb/helloworldwithdrdan) to be the first to know when modules are released.** **[SIGN-UP NOW!](https://mailchi.mp/e468e9e3efeb/helloworldwithdrdan)** # Syllabus This course is taught in 8 modules and mimics the education you'd obtain if you sat through an entire year of introductory programming at the university level. I've taught intro-level programming for 6+ years and am acutely aware of what beginners need to see and hear. In short, **I DON'T SKIP STEPS!**. The 8 modules included in this course are as follows: 1. [Basics](#module-1---basics) 2. [Functions and Storage](#module-2---functions-and-storage) 3. [Object-Oriented Programming](#module-3---object-oriented-programming) 4. [Exceptions and File Input/Output (I/O)](#module-4---exceptions-and-file-inputoutput-io) 5. [Memory Organization, Lambda Expressions and Basic Data Structures](#module-5---memory-organization-lambda-expressions-and-basic-data-structures) 6. [Threads, GUIs and APIs](#module-6---threads-guis-and-apis) 7. [Recursion](#module-7---recursion) 8. [Tranitioning to C++ (from Java)](#module-8---tranitioning-to-c-from-java) ## Module 1 - Basics Module 1 covers the basics of programming, specifically with the Java programming language. The content in this section is almost always taught in a "101"-style intro programming course. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Printing to Console & Basic Variables [(more details)](Module_01_Basics/src/Lesson_01_Basics.java) [(video overview)](https://youtu.be/o1zl31qtyc8) 2. Primitive Data Types [(more details)](Module_01_Basics/src/Lesson_02_Primitives.java) [(video overview)](https://youtu.be/9cfD9Eruyk4) 3. Strings and Parsing [(more details)](Module_01_Basics/src/Lesson_03_Strings_And_Parsing.java) [(video overview)](https://youtu.be/SRPayhD1QnE) 4. Boolean Logic (relational operators, unary operators, conditional operators) [(more details)](Module_01_Basics/src/Lesson_04_Logic.java) [(video overview)](https://youtu.be/LllXEIbWtaA) 5. Conditional Logic and Basic Math (math operators, short-hand operators, incrementers) [(more details)](Module_01_Basics/src/Lesson_05_Basic_Math.java) [(video overview)](https://youtu.be/eMtvpJmaef8) 6. Loops (for, while, do while) [(more details)](Module_01_Basics/src/Lesson_06_Loops_Toy_Examples.java) [(video overview)](https://youtu.be/3saWHF_YeHU) 7. More Loop Practice (String and Character methods, ASCII) [(more details)](Module_01_Basics/src/Lesson_07_For_Loop_Char_Password_Analyzer.java) [(video overview)](https://youtu.be/ep6um0x-ZNQ) 8. Basic Statistics (more loop practice, average, min, max, sum) [(more details)](Module_01_Basics/src/Lesson_08_Loops_Stats_Example.java) [(video overview)](https://youtu.be/mOBMZHNog5Y) ## Module 2 - Functions and Storage Module 2 covers the intermediate topics of programming (in Java), specifically focusing on functions (methods) and storage (arrays and ArrayLists). The content in this section is almost always taught in a "101"-style intro programming course, although ArrayLists are sometimes taught at the beginning of a "102"-style intro programming course. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Functions (pass by value and static functions) [(more details)](Module_02_Functions_And_Storage/src/Lesson_01_Functions_Pass_By_Value_And_Static.java) [(video overview)](https://youtu.be/X28iyIeV2P0) 2. Single-Dimension (1D) Arrays and the Random Class (declaring, initializing and iterating) [(more details)](Module_02_Functions_And_Storage/src/Lesson_02_1D_Array_Toy_Examples.java) [(video overview)](https://youtu.be/IJVEFw5eTdg) 3. Counting Arrays [(more details)](Module_02_Functions_And_Storage/src/Lesson_03_1D_Counting_Array.java) [(video overview)](https://youtu.be/H6RQY4gSw8c) 4. 2D Arrays (declaring, initializing, iterating and processing) [(more details)](Module_02_Functions_And_Storage/src/Lesson_04_2D_Array_Bills_Examples.java) [(video overview)](https://youtu.be/Tf-HNlU0iBU) 5. More Array Practice (cards shuffling example) [(more details)](Module_02_Functions_And_Storage/src/Lesson_05_1D_Array_Cards_Example.java) [(video overview)](https://youtu.be/QoDW6Hjejf4) 6. Functions (pass by reference) [(more details)](Module_02_Functions_And_Storage/src/Lesson_06_Functions_Pass_By_Reference_Cards_Example.java) [(video overview)](https://youtu.be/QVyowdKUFCE) 7. ArrayLists (declaring, methods, iterating, sorting, nesting) [(more details)](Module_02_Functions_And_Storage/src/Lesson_07_ArrayList_Toy_Examples.java) [(video overview)](https://youtu.be/ovghUdzkY9E) 8. More 2D-Array and ArrayList Practice (cards shuffling example) [(more details)](Module_02_Functions_And_Storage/src/Lesson_08_2D_Arrays_And_ArrayList_Cards_Example.java) [(video overview)](https://youtu.be/bwsauDipX8A) ## Module 3 - Object-Oriented Programming Module 3 covers the beginner, intermediate and advanced topics of programming (in Java), specifically focusing on object oriented programming. The portion of this module covering basic classes, is typically taught in a "101"-style intro programming course, while the rest is usually taught in a "102"-style intro programming course. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down in one monolithic lesson/program: 1. Basic Object Oriented Programming [(more details)](Module_03_Advanced_OOP/src/client/Lesson_01_StarWarsUniverseClient_Basic_OOP.java) [(video overview)](https://youtu.be/yLsSYAGK0-A) - Custom Classes - Instance Variables - Constructors - Getters/Setters - Method Overriding (toString(), equals()) - Class Methods 2. Advanced Object Oriented Programming [(more details)](Module_03_Advanced_OOP/src/client/Lesson_02_StarWarsUniverseClient_Advanced_OOP.java) [(video overview)](https://youtu.be/267awAp5xCY) - Inheritance - Polymorphism - Abstract Methods and Classes - Interfaces ## Module 4 - Exceptions and File Input/Output (I/O) Module 4 covers intermediate to advanced topics of programming (in Java), specifically focusing on exceptions and file I/O. The content in this section is almost always taught in a "102"-style intro programming course, if it is covered at all. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Basic Exception Handling (exceptions, try/catch/finally) [(more details)](Module_04_Exceptions_And_File_IO/src/clients/Lesson_01_Exception_Handling_Toy_Example.java) 2. User Defined Exceptions (creating own exceptions, throws) [(more details)](Module_04_Exceptions_And_File_IO/src/clients/Lesson_02_Custom_Exceptions_Password_Manager_Example.java) 3. File Input/Output (plain-text, serialized) [(more details)](Module_04_Exceptions_And_File_IO/src/clients/Lesson_03_File_IO_PasswordManager_Example.java) ## Module 5 - Memory Organization, Lambda Expressions and Basic Data Structures Module 5 covers advanced topics of programming (in Java), specifically focusing on memory organization, lambda expressions and an intro to basic data structures. While memory organization may be taught in a "102"-style intro programming course, most of these topics are not covered at all in a "101" or "102"-level course. Topics in this course are taught to **expose** students to advanced topics so that they are more prepared for a course like Data Structures (typically comes after a "102"-style course). A number of high-quality slides are provided with this module since the concepts covered are more conceptual than previous content. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Memory Organization (Stack vs. Heap) [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_01_Stack_Vs_Heap.java) 2. Performance & Functional Differences: ArrayList vs. LinkedList vs. Set [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_02_ArrayList_Vs_LinkedList_Vs_Set.java) 3. Lambda Expressions (passing methods as parameters) [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_03_Lambda_Expressions.java) 4. Sets (simple example) [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_04_Set_Basics_Countries_Visited_Example.java) 5. Maps (mapping a "primitive" to a "primitive") [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_05_Map_Simple_Values_Countries_Visited_Example.java) 6. Maps (mapping a "primitive" to a list) [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_06_Map_Complex_Values_Countries_Visited_Example.java) 7. Maps (sorting by map key, sorting by map value) [(more details)](Module_05_Memory_Org_Lambda_Expressions_And_Datastructures/src/Lesson_07_Maps_Table_Contents_Word_Count_Example.java) ## Module 6 - Threads, GUIs and APIs Module 6 covers advanced topics of programming (in Java), specifically focusing on threads, GUIs and APIs. While this module may prove to be the most fun for students, these topics are typically not covered in a "101"- or "102"-style intro programming course. These are **essential** topics that most students are forced to teach themselves. Understanding these topics well, even in the context of Java, will prepare students to jump into web-app or mobile-app platforms much more easily.A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Theads (breaking up tasks to increase performance) [(more details)](Module_06_Threads_GUIs_And_APIs/src/main/java/Lesson_01_Threads.java) 2. Hand-coded GUI Creation (components, layouts, event handlers) [(more details)](Module_06_Threads_GUIs_And_APIs/src/main/java/Lesson_02_Handcoded_GUI_Self_Destructing.java) 3. APIs, JSON, External Libraries and Maven (making Yelp API calls and parsing response data, adding external libraries) [(more details)](Module_06_Threads_GUIs_And_APIs/src/main/java/Lesson_03_APIs_JSON_Libraries_Maven.java) 4. WindowBuilder GUI and APIs (making a GUI using a GUI-builder) [(more details)](Module_06_Threads_GUIs_And_APIs/src/main/java/Lesson_04_Windowbuilder_GUI_APIs.java) ## Module 7 - Recursion Module 7 covers advanced topics of programming (in Java), specifically focusing on recursion. Recursion is taught in some "102"-style programming courses or not until a Data Structures course. Lessons in this course are taught to **expose** students to recursion so that they are more prepared for a course like Data Structures (typically comes after a "102"-style course) and are not meant to provide mastery. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Recursive Math Examples (base cases, recursive cases) [(more details)](Module_07_Recursion/src/Lesson_01_Recursion_Math_Examples.java) - Recursive Powers Computation - Recursive Factorial Computation - Recursive Fibonacci Number Computation - Recursive Prime Computation - Recursive Decimal-to-Binary Computation 2. Binary Search Example [(more details)](Module_07_Recursion/src/Lesson_02_Recusion_Binary_Search_Example.java) ## Module 8 - Tranitioning to C++ (from Java) Module 8 covers beginner and intermediate topics of C++, taught toward students who are well-trained in Java (like the students who completed Modules 1-7 of this course). A quick comparison is provided of syntax (Java vs. C++) and lessons demonstrate the differences of C++ when compared to the Java content covered in Modules 1, 2 and the portion of Module 3 covering basic classes. Lessons in this course are taught to **jump start** students into C++ so they have a solid foundation to confidently learn advanced C++ topics on their own. A wide variety of concepts are covered, but the high-level topics and goals of this module are broken down into the following lessons: 1. Basics (includes, console I/O, loops, conditional statements, arrays, vectors) [(more details)](Module_08_Transition_To_C++/Source/Lesson_01_C++_Basics.cpp) 2. Pointers (* and & syntax, pointer arithmetic) [(more details)](Module_08_Transition_To_C++/Source/Lesson_02_Pointer_Basics.cpp) 3. Functions (pass by value, pass by reference) [(more details)](Module_08_Transition_To_C++/Source/Lesson_03_Pass_By_Reference_Vs_Value.cpp) 4. Basic Classes (define macros, .h header files, .cpp source files, deconstructors) [(more details)](Module_08_Transition_To_C++/Source/Lesson_04_Burrito_Client.cpp)
0
nzaeta/SecurityJWT
Tutorial de Spring Security - JWT - Roles de usuario - CORS
null
# Tutorial de Spring Security - JWT - Roles de usuario - CORS En este tutorial aprenderás: - Implementación de **Spring Security** - Login y Registro con **Json Web Token** - Autorizar el acceso a un endpoint a usuarios con un **ROL** determinado - Configuración de **CORS** para que el Front-end pueda acceder a tu proyecto <br> Para ejecutar el proyecto de este repositorio: - Crear una base de datos de nombre "securityJWT". - Revisar en application.properties las credenciales de acceso (por defecto username: root, password: root) <br> ## Introducción - Autenticación con Json Web Token Al loguearse el usuario, si las credenciales (usuario y contraseña) son válidas, le enviará al front un JWT.<br> El front almacenará ese JWT en una cookie o sessionStorage, y lo incluirá en las posteriores requests para acceder a los endpoints protegidos.<br> El JWT contiene: - HEADER: tipo de token y algoritmo de firma utilizado - PAYLOAD: id usuario, roles, permisos. Se le pueden agregar más datos - SIGNATURE: para garantizar que no haya sido manipulado <br> ## 1 - Crear Proyecto Spring / Agregar dependencias a pom.xml Al crear el proyecto con Spring Initializr debes agregar las siguientes dependencias: - Spring Web - Spring Security - Spring Data JPA - MySQL Driver - Lombok (librería de anotaciones para ahorrarse el código de getters, setters y constructores) - Validation (anotaciones para validar atributos @NotNull, @NotBlank, etc.) Si estás trabajando en un proyecto ya iniciado, revisa en tu archivo pom.xml que tenga todo lo que figura a continuación. Además hay que agregar manualmente las 3 dependencias de JWT. ```html <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.11.5</version> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-impl</artifactId> <version>0.11.5</version> <scope>runtime</scope> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-jackson</artifactId> <version>0.11.5</version> <scope>runtime</scope> </dependency> ``` ```html <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.mysql</groupId> <artifactId>mysql-connector-j</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <excludes> <exclude> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclude> </excludes> </configuration> </plugin> </plugins> </build> ``` <br> ## 2 - Crear Clase Controlador AuthController En esta clase están los endpoints para autenticación (Login y Registro). Estos métodos no estarán protegidos (se podrán acceder por un usuario no autenticado), esto lo indicaremos posteriormente en una clase de Configuración. Ambos devolverán un JWT. <br> Llama a los métodos de la Clase Servicio Authservice, los cuales desarrollaremos más adelante. ```java @RestController @RequestMapping("/auth") @RequiredArgsConstructor public class AuthController { private final AuthService authService; @PostMapping("login") public ResponseEntity<AuthResponse> login(@RequestBody LoginDto datos) { try { return ResponseEntity.ok(authService.login(datos)); } catch (RuntimeException e) { return new ResponseEntity(e.getMessage(), HttpStatus.BAD_REQUEST); } } @PostMapping("registro") public ResponseEntity<AuthResponse> registro(@RequestBody RegistroDto datos) { try { return ResponseEntity.ok(authService.registro(datos)); } catch (RuntimeException e) { return new ResponseEntity(e.getMessage(), HttpStatus.BAD_REQUEST); } } } ``` <br> ## 3 - Crear Clases DTO Creamos las clases **LoginDto** y **RegistroDto** que habiamos indicado como parámetros en los endpoints Login y Registro. También **AuthResponse**, la respuesta que retornarán esos endpoints: el JWT como String. ```java @Data @Builder @NoArgsConstructor @AllArgsConstructor public class RegistroDto { String email; String password; String nombre; String apellido; String pais; String rol; } ``` ```java @Data @Builder @AllArgsConstructor @NoArgsConstructor public class LoginDto { String email; String password; } ``` ```java @Data @Builder @NoArgsConstructor @AllArgsConstructor public class AuthResponse { String token; } ``` ## 4 - Implementar UserDetails en tu Entidad Usuario - UserDetails es un usuario de Spring Security. Es una interfaz, y debes implementarla en la entidad que será el usuario de tu app (User, Usuario, Persona, etc.). Al hacerlo, tu IDE te pedirá sobreescribir sus métodos. - UserDetails tiene como atributos **username** y **password**. Aquí sobreescribimos el método getUsername y le indicamos que usaremos el email como username. - En este caso no hizo falta sobreescribir el método getPassword porque ya tenemos un atributo "password" en la entidad User, y Lombok se está encargando de crear el getter por la anotación @Data. Si al campo le pusiste otro nombre (ej: contrasena) tu IDE te forzará a implementar el método getPassword, al cual habrá que pasarle el atributo contrasena. - Le agregamos como atributo el Rol. **Los roles estarán listados en una Clase Enumerador** (ver más abajo). - En el método getAuthorities le pasamos el rol, serán los permisos que tiene ese usuario. - A los métodos de expiración le ponemos todo true. No los usaremos, ya que eso se manejará con el JWT. ```java @Data @Builder @NoArgsConstructor @AllArgsConstructor @Entity public class User implements UserDetails { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Integer id; String email; String apellido; String nombre; String pais; String password; @Enumerated(EnumType.STRING) Role role; @Override public Collection<? extends GrantedAuthority> getAuthorities() { return List.of(new SimpleGrantedAuthority((role.name()))); } @Override public String getUsername() { return email; } @Override public boolean isAccountNonExpired() { return true; } @Override public boolean isAccountNonLocked() { return true; } @Override public boolean isCredentialsNonExpired() { return true; } @Override public boolean isEnabled() { return true; } } ``` ```java public enum Role { COMPRADOR, VENDEDOR } ``` ## 5 - Agregar query en Clase Repositorio En el repositorio de tu clase usuario agregamos un método para buscar por el atributo que habíamos decidido utilizar como **username**, en este caso el **email**. ```java public interface UserRepository extends JpaRepository<User,Integer> { Optional<User> findByEmail(String email); } ``` ## 6 - Crear Clase de Configuración SecurityConfig - Esta clase contiene la **SecurityFilterChain**. Todas las requests que reciba nuestra API pasarán por esta cadena de filtros.<br> - Le indicamos que los endpoints en la ruta /auth/ (login y registro) serán públicos (son los de la clase AuthController, que hicimos en el punto 2#) . <br> - Para acceder a los demás endpoints, el usuario deberá estar autenticado ( .anyRequest().authenticated() )<br> - Deshabilitamos csrf y session. Son métodos predeterminados de Spring Security que no usaremos, porque la autenticación la haremos con JWT. - Agregamos el **jwtAuthenticationFilter** (lo desarrollaremos luego).<br> - El authenticationProvider es el responsable de recibir una solicitud de autorización y decidir si es válida o no. Más adelante, en otra clase de configuración indicaremos cuál provider implementaremos.<br> - La anotación @EnableMethodSecurity(securedEnabled = true) nos permitirá incluir en los controladores la anotación **@Secured** para indicar el **ROL** de los usuarios que tendrán acceso a los mismos.<br> ```java @Configuration @EnableWebSecurity @EnableMethodSecurity(securedEnabled = true) @RequiredArgsConstructor public class SecurityConfig { private final JwtAuthenticationFilter jwtAuthenticationFilter; private final AuthenticationProvider authProvider; @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { return http .csrf(csrf -> csrf .disable()) .authorizeHttpRequests(authRequest -> authRequest .requestMatchers("/auth/**").permitAll() .anyRequest().authenticated() ) .sessionManagement(sessionManager-> sessionManager .sessionCreationPolicy(SessionCreationPolicy.STATELESS)) .authenticationProvider(authProvider) .addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class) .build(); } } ``` <br> ## 7 - Crear Filtro JwtAuthenticationFilter Ya indicamos anteriormente en SecurityConfig que todas las peticiones deben pasar por este filtro. - El filtro hereda de OncePerRequestFilter (se ejecutará una vez sola por cada request). - Obtenemos el token que viene incluido en la request llamando al método getTokenFromRequest (ver más abajo). El mismo busca el token que está en el HEADER de la request y le quita la palabra "Bearer". - Si la request no tiene JWT, continuamos con la cadena de filtros, donde habíamos indicado que solo podría acceder al login y registro en /auth/. - Si la request viene con un JWT, buscará el usuario en nuestra Base de Datos. Luego lo validará (credenciales correctas, no expirado) y si está todo ok lo guardará en el SecurityContextHolder. - SecurityContextHolder es un método estático para recuperar los datos del usuario. Permitirá llamarlo desde cualquier parte de nuestro código sin pasarle ningún parámetro. ```java @Component @RequiredArgsConstructor public class JwtAuthenticationFilter extends OncePerRequestFilter { private final JwtService jwtService; private final UserDetailsService userDetailsService; @Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { final String token = getTokenFromRequest(request); final String username; if (token==null) { filterChain.doFilter(request, response); return; } username=jwtService.getUsernameFromToken(token); if (username!=null && SecurityContextHolder.getContext().getAuthentication()==null) { UserDetails userDetails=userDetailsService.loadUserByUsername(username); if (jwtService.isTokenValid(token, userDetails)) { UsernamePasswordAuthenticationToken authToken= new UsernamePasswordAuthenticationToken( userDetails, null, userDetails.getAuthorities()); authToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request)); SecurityContextHolder.getContext().setAuthentication(authToken); } } filterChain.doFilter(request, response); } private String getTokenFromRequest(HttpServletRequest request) { final String authHeader=request.getHeader(HttpHeaders.AUTHORIZATION); if(StringUtils.hasText(authHeader) && authHeader.startsWith("Bearer ")) { return authHeader.substring(7); } return null; } } ``` ## 8 - Crear Clase de Configuración AppConfig - **AuthenticationManager** es una interfaz de de Spring Security, responsable de manejar el proceso de autenticación de usuarios. - El proveedor de autenticación a implementar será **DaoAuthenticationProvider**, que valida las credenciales (usuario y contraseña) contra una Base de Datos. Otro proveedor utilizado comúnmente es OAuth2Login, que sirve para inciar sesión con Google, Facebook, etc. - Para encriptar las contraseñas utilizaremos el algoritmo **Bycrypt**. - **UserDetailsService** se encargará de buscar el usuario en la base de datos. Recordemos que habíamos definido que utilizaríamos como username el **email**. - **CORS** (Cross-Origin Resource Sharing) es un mecanismo de seguridad que tienen los navegadores web para restringir peticiones HTTP entre distintos servidores. Es necesario agregar esta configuración para que el Front pueda acceder a nuestra API. Completa la línea de .allowedOrigins(... ) con la URL que utilizará el front-end. ```java @Configuration @RequiredArgsConstructor public class AppConfig { private final UserRepository userRepository; @Bean public AuthenticationManager authenticationManager(AuthenticationConfiguration config) throws Exception { return config.getAuthenticationManager(); } @Bean public AuthenticationProvider authenticationProvider() { DaoAuthenticationProvider authenticationProvider= new DaoAuthenticationProvider(); authenticationProvider.setUserDetailsService(userDetailService()); authenticationProvider.setPasswordEncoder(passwordEncoder()); return authenticationProvider; } @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); } @Bean public UserDetailsService userDetailService() { return username -> userRepository.findByEmail(username) .orElseThrow(()-> new UsernameNotFoundException("User not fournd")); } @Bean public WebMvcConfigurer corsConfigurer() { return new WebMvcConfigurer() { @Override public void addCorsMappings(@NotNull CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://localhost:5173") // URL del Front-end .allowedMethods("GET", "POST", "PUT", "DELETE","OPTIONS") .allowCredentials(true); } }; } } ``` ## 9 - Crear Clase Servicio JWTService Este servicio contendrá métodos para generar el JWT, verificar su validez y extraer información del mismo. - La SECRET_KEY sirve para validar la firma del token. Con la anotación @Value le asignamos el valor de la variable jwt.secret, que guardamos en el archivo application.properties (ver más abajo). - El método getToken recibirá por parámetro un usuario de Spring Security (UserDetails), y construirá un JWT. Su firma se realiza con la SECRET_KEY y el algoritmo HS256. - La expiración del token se expresa en milisegundos. Un día tiene 86400 segundos (60 seg x 60 min x 24 hs.). Este token expirará en un día. - El método **isTokenValid** verifica si el token es válido comprobando el username (getUsernameFromToken) y su expiración (isTokenExpired) ```java @Service public class JwtService { @Value("${jwt.secret}") private String SECRET_KEY; public String getToken(UserDetails user) { return getToken(new HashMap<>(), user); } private String getToken(Map<String,Object> extraClaims, UserDetails user) { return Jwts .builder() .setClaims(extraClaims) .setSubject(user.getUsername()) .setIssuedAt(new Date(System.currentTimeMillis())) .setExpiration(new Date(System.currentTimeMillis()+1000*86400)) .signWith(getKey(), SignatureAlgorithm.HS256) .compact(); } private Key getKey() { byte[] keyBytes=Decoders.BASE64.decode(SECRET_KEY); return Keys.hmacShaKeyFor(keyBytes); } public String getUsernameFromToken(String token) { return getClaim(token, Claims::getSubject); } public boolean isTokenValid(String token, UserDetails userDetails) { final String username=getUsernameFromToken(token); return (username.equals(userDetails.getUsername())&& !isTokenExpired(token)); } private Claims getAllClaims(String token) { return Jwts .parserBuilder() .setSigningKey(getKey()) .build() .parseClaimsJws(token) .getBody(); } public <T> T getClaim(String token, Function<Claims,T> claimsResolver) { final Claims claims=getAllClaims(token); return claimsResolver.apply(claims); } private Date getExpiration(String token) { return getClaim(token, Claims::getExpiration); } private boolean isTokenExpired(String token) { return getExpiration(token).before(new Date()); } } ``` Application.properties : ```properties spring.jpa.hibernate.ddl-auto=update spring.datasource.url= jdbc:mysql://localhost:3306/securityJWT?useSSL=false&serverTimezone=UTC spring.datasource.username=root spring.datasource.password=root spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect jwt.secret= 123456789654564564dsa65f4s56d4f65sdf56sd564f65sdf65sd6f54sd6f ``` ## 10 - Crear Clase Servicio AuthService Finalmente podemos desarrollar aquí los métodos de login y registro invocados por el AuthController que hicimos en el paso #2 - Registro: Recibe el DTO con los datos de registro, el cual incluye el email. Si ya existe un usuario en la Base de Datos con ese email, lanzará un mensaje de error. De lo contrario guardará el usuario en la BD y devolverá el JWT llamando al JWTService del paso anterior. - Login: Autentica al usuario con las credenciales que recibe dentro del LoginDto. Busca al usuario en la BD y genera el JWT. ```java @Service @RequiredArgsConstructor public class AuthService { private final UserRepository userRepository; private final JwtService jwtService; private final PasswordEncoder passwordEncoder; private final AuthenticationManager authenticationManager; public AuthResponse login(LoginDto datos) { authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(datos.getEmail(), datos.getPassword())); UserDetails user = userRepository.findByEmail(datos.getEmail()).orElseThrow(); String token = jwtService.getToken(user); return AuthResponse.builder() .token(token) .build(); } public AuthResponse registro(RegistroDto datos) { Optional<User> userOptional = userRepository.findByEmail(datos.getEmail()); if (userOptional.isPresent()) { throw new RuntimeException("Ya existe un usuario con ese email"); } User user = User.builder() .email(datos.getEmail()) .password(passwordEncoder.encode(datos.getPassword())) .nombre(datos.getNombre()) .apellido(datos.getApellido()) .pais(datos.getPais()) .role(Role.valueOf(datos.getRol())) .build(); userRepository.save(user); return AuthResponse.builder() .token(jwtService.getToken(user)) .build(); } } ``` ## 11 - Asignar Roles de acceso a los endpoints Mediante la anotación @Secured("ROL") indicamos el rol que debe tener el usuario para poder acceder a cada endpoint. Recordemos que para que esta anotación funcione, pusimos esta otra anotación en SecurityConfig: @EnableMethodSecurity(securedEnabled = true).<br> Si varios roles tienen permiso a ese endpoint se puede poner así: @Secured({"ADMIN", "ROL1", "ROL2"}) <br> Aquí tenemos una clase controlador con unos endpoints de ejemplo: - probando: podrá ser accedido por cualquier usuario que esté logueado, independientemente de su rol, ya que no utilizamos la anotación @Secured. - endpointComprador: solo podrá ser accedido por un usuario con rol "COMPRADOR". Si el usuario tiene otro rol, devolverá un 403. - endpointVendedor: solo podrá ser accedido por un usuario con rol "VENDEDOR". Si el usuario tiene otro rol, devolverá un 403. ```java @RestController @RequestMapping("/test") @RequiredArgsConstructor public class TestController { @GetMapping() public String probando() { return "Hola Mundo"; } @Secured("COMPRADOR") @GetMapping("endpointComprador") public String endpointComprador() { return "Hola, soy un comprador"; } @Secured("VENDEDOR") @GetMapping("endpointVendedor") public String endpointVendedor() { return "Hola, soy un vendedor"; } } ``` ## 12 - Testear endpoints en Postman Los endpoints de Login y Registro devolverán un JWT. ![image](https://github.com/nzaeta/SecurityJWT/assets/106348660/32ea13f9-3e38-4e88-b3a3-76593a73ca15) <br> Para acceder a los métodos protegidos, copiar y pegar el token en Authorization - Bearer Token. Sin ese token, cualquier petición a un endpoint protegido devolverá un 403. ![image](https://github.com/nzaeta/SecurityJWT/assets/106348660/2a9c450a-51fd-4cd3-91c0-e332b37e5d84) <br> Te comparto la colección de requests en [**Postman**](https://www.postman.com/nzaeta86/workspace/securityjwt/collection/29747805-a49a8517-1166-4756-984c-9508a2e50d55 "Ver colección en Postman"). Aquí no hace falta ir pegando el token en Authorization, está configurado para guardarlo en una variable {{token}} al hacer el Registro/Login. <br> En el sitio Web [**JWT.IO**](https://jwt.io/ "ir al sitio web de JWT.IO") se puede decodificar el JWT y ver su contenido. ![image](https://github.com/nzaeta/SecurityJWT/assets/106348660/eeaf0907-842f-4f23-baf2-624b80d68f2a)
1
Fernanda-Kipper/backend-cardapio-digital
Esse projeto é a API REST da aplicação de Cardápio Digital desenvolvido durante meu tutorial no Youtube
api-rest backend java java-spring
<h1>Cardápio Digital - Backend</h1> <p align="center"> <a href="#pre-requisites">Pré-requisitos</a> • <a href="#how-to-use">Instalando o projeto</a> • <a href="#related">Frontend</a> • <a href="#license">Licença</a> </p> Essa aplicação foi desenvolvido durante o video [Construindo aplicação Fullstack do ZERO](https://youtu.be/lUVureR5GqI?si=d-fHBagSO6bjX58G) utilizando **Java Spring e Spring MVC** para criação do servidor, **Spring Data JPA** para manipulação e persistência de dados, **Lombok** para geração de boilerplates e Postgres Driver para realizar a conexão com banco de dados Postgress. <h2 id="pre-requisites">💻 Requisitos</h2> Para rodar esse projeto você precisa ter o Java instalado na sua máquina. <h2 id="how-to-use"> 🚀 Instalando o projeto</h2> Primeiro você deve clonar o repositório, ```bash # Clone o repositório $ git clone https://github.com/fernandakipper/crud-java-back # Acesse-o $ cd crud-java-back ``` Agora, dentro do IntelliJ, vamos instalar as depedências com o Maven <img width="300px" src="./.github/instalar-deps.png"> E por fim, entre no arquivo da classe `CardapioApllication` para executar o projeto <img width="300px" src="./.github/executar.png"> <h2 id="related">🫂 Integração com Frontend</h2> Para realizar a integração com o Frontend, você pode clonar o projeto e rodar localmente, ou desenvolver você mesmo seguindo o tutorial no Youtube. 👉 [Desenvolvendo o Frontend desse Cardápio Digital com React e Typescript](https://www.youtube.com/watch?v=WHruc3_2z68) 👉 [Link do repositório](https://github.com/Fernanda-Kipper/frontend-cardapio-digital) <h2 id="related">📝 Licença</h2> Este projeto está licenciado sob a licença MIT. Consulte o arquivo `LICENSE` para obter mais informações. ## 📱 Minhas Redes Meu site: [fernandakipper.com](https://www.fernandakipper.com) &nbsp;&middot;&nbsp; Instagram: [@kipper.dev](https://github.com/kipper.devb) &nbsp;&middot;&nbsp; YouTube [@kipperdev](https://www.youtube.com/@kipperdev) &nbsp;&middot;&nbsp;
1
DaveVoorhis/Rel
Rel is a desktop database management system that implements Date & Darwen's Tutorial D" database language."
database-language database-management education educational java
This is the live development repository for *Rel*, an implementation of Date & Darwen's **Tutorial D** database language. ## To Use _Rel_ These aren't the files you're looking for. Ready-to-run distributions of *Rel* are available on SourceForge at https://sourceforge.net/projects/dbappbuilder/files/Rel/ Read the *_Deployment/README.txt* file for further information on running *Rel*. ## To Learn More About _Rel_ For further information, see the *Rel* home page at https://reldb.org For support or to discuss *Rel*, see the *Rel* Forum at https://reldb.org/forum See other relational projects at http://www.thethirdmanifesto.com and join the TTM Forum at https://forum.thethirdmanifesto.com ## To Contribute to _Rel_ Development 1. Install a Java 11 or higher JDK from (for example) https://jdk.java.net 2. Install Maven (https://maven.apache.org/install.html) if you don't have it already. 3. Clone the *Rel* project from GitHub at https://github.com/DaveVoorhis/Rel 4. Build the *Rel* project with ```mvn clean install``` 5. Run DBrowser in the DBrowser subproject to launch the *Rel* graphical user interface. On MacOS, you need to add `-XstartOnFirstThread` to the Java VM launch. 6. Submit a pull request when you've done something good.
1
Java-Edge/Java-Concurrency-Progamming-Tutorial
大厂一线工程师四年磨一剑精心编排 Java 高并发编程教程。详细文档讲解请阅读本人的知识库仓:https://github.com/Wasabi1234/Java-Interview-Tutorial
concurrency concurrent-programming currency java java8
## 1 目标 致力于构建全球最完善的 Java 高并发理论体系。让我们的程序更加可靠,跳槽面试更轻松。 ## 高并发方案概要 ### 线程安全性 线程安全性,主要从原子性、可见性、有序性 ### 安全发布对象 安全发布对象的一些核心方法,主要通过单例类的多种实现方式体会,这也是对线程安全性的巩固,也是把线程安全性涉及的一些关键字和类再一次放到实际场景使用。 ### 线程安全策略 线程安全策略,包括定义不可变对象、线程封闭、同步容器、并发容器等,引出并发里的关键知识J.U.C。 同时还额外介绍了开发中常见的一些线程不安全类和写法,并给出他们各自对应的替代方案。 ### AQS J.U.C的重要组件,面试必问考点。 AQS模型设计及相关同步组件的原理和使用,都非常实用,包括:CountDownLatch、Semaphore、CyclicBarrier、ReentrantLock与锁、Condition等。 这些组件需要大家能熟练明白他们的用途及差异,不但会使用,而且还要明确知道不同方法调用后的不同效果。 ### J.U.C组件拓展 J.U.C相关组件,主要包括FutureTask、Fork/Join框架、BlockingQueue,其中FutureTask讲解时会对比着Callable、Runnable、Future来讲。 这些组件使用场景相对AQS会少一些,但也是J.U.C的重要组成部分,也是需要掌握的 ### 线程调度-线程池 new Thread弊端、线程池的好处、ThreadPoolExecutor详细介绍(参数、状态、方法)、线程池类图、Executor框架接口 ### 多线程并发拓展 死锁产生的条件及预防、多线程并发编程的最佳实践、Spring与线程安全、以及面试都特别喜欢问的HashMap和ConcurrentMap源码细节 ### 扩容 垂直扩容和水平扩容的区别,数据库读操作扩展和写操作扩展 ### 缓存 缓存特征(命中率、最大元素、清空策略)、影响缓存命中率因素、缓存分类和应用场景(本地缓存、分布式缓存)、高并发场景下缓存常见问题(缓存一致性、缓存并发、缓存穿透、雪崩) ### MQ 消息队列的特性(业务无关、FIFO、容灾、性能)、为什么需要消息队列以及消息队列的好处(业务解耦、最终一致性、广播、错峰与流控) ### 应用拆分 ### 限流 明确限流的重要作用 限流常用的四种算法:计数法、滑动窗口、漏桶算法和令牌桶算法 ### 服务降级与服务熔断 服务降级的分类:自动降级(超时、失败次数、故障、限流)和人工降级(开关),总结了服务降级和服务熔断的共性(目的、最终表现、粒度、自治)和区别(出发原因、管理目标层次、实现方式)以及服务降级要考虑的问题 ### 分库分表 ## QQ 技术交流群 为大家提供一个学习交流平台,在这里你可以自由地讨论技术问题。 <img src="assets/QQ 群.JPG" width="180px"> ## 微信交流群 <img src="assets/微信群.jpeg" width="180px"> ### 本人微信 <img src="assets/个人微信.jpeg" width="180px"> ## Java源码模拟面试解析指南 <a href="https://www.nowcoder.com/tutorial/10029/index"> <img src="assets/牛客专刊.png" width="80px"></a> ### 绘图工具 - [draw.io](https://www.draw.io/) - keynote ## 知识体系 ![](https://uploadfiles.nowcoder.com/files/20190815/5088755_1565799768221_4685968-76a236d781f7dee7.png)
0
szaza/tensorflow-java-examples-spring
Tensorflow Java tutorial with Spring and Gradle. This is a simple example application, which uses Yolo with TF Java API and Spring Framework.
java spring tensorflow tutorial
# TensorFlow Java tutorial with Spring Framework and Gradle Object detection server side application sample program written in Java. It uses the TensorFlow Java API with a trained YOLOv2 model. The server application is implemented with Spring Framework and it is built by Gradle. #### How it works? It provides a web user interface to upload images and detect objects. <img src="https://github.com/szaza/java-tensorflow-spring/blob/master/sample/home-page.jpg" alt="TensorFlow Java API home page" title="TensorFlow Java API home page" width="600"/><br/> Step1: upload your image <img src="https://github.com/szaza/java-tensorflow-spring/blob/master/sample/object-detection-page.jpg" alt="TensorFlow Java API object detection page" title="TensorFlow Java API object detection page" width="600"/><br/>Step2: display the recognized objects #### Compile and run Preconditions: - Java JDK 1.8 or greater; - TensorFlow 1.6 or grater; - Git version control system; Strongly recommended to install: - nVidia CUDA Toolkit 8.0 or higher version; - nVidia cuDNN GPU accelerated deep learning framework; **Download the frozen graph and the label file** Before compiling the source code you have to place the frozen graph and the label file into the `./graph/YOLO` directory. Download one of my graphs from my [google drive](https://drive.google.com/drive/folders/1GfS1Yle7Xari1tRUEi2EDYedFteAOaoN). There are two graphs: tiny-yolo-voc.pb and yolo-voc.pb. The tiny-yolo.pb has a lower size, however it is less accurate than the yolo-voc.pb. Modify the [application.yml](https://github.com/szaza/tensorflow-java-examples-spring/blob/master/src/main/resources/application.yml) configuration file if it is necessary. Here you can increase the file upload limit also. **Compile with Gradle** Compile the code by typing `./gradlew clean build` in the terminal window.<br/> Run it with the command `./gradlew bootRun` Open the [http://localhost:8080](http://localhost:8080) and you should see the webpage.<br/> #### Demo application Deployed to **Heroku** with a tiny-yolo model: https://still-crag-64816.herokuapp.com/ Have a look at my previous project for better understanding of the object detection part: [Tensorflow Java API example application](https://github.com/szaza/tensorflow-example-java) or visit my site: https://sites.google.com/view/tensorflow-example-java-api. ## News about YoloV3 support The current solution doesn't support the YoloV3 model and unfortunately, I do not have time to implement it, however I would be very happy if I could help to implement and I could review a PR with this feture. For this reason I've started a new branch here: https://github.com/szaza/tensorflow-java-examples-spring/tree/feature/add-yolov3-support; If you are interested in this feature and you would like to be a collabortor, please add a comment for this thread: https://github.com/szaza/tensorflow-java-examples-spring/issues/2; Many-many thank for any support!
1
jiepujiang/LuceneTutorial
A simple tutorial of Lucene for LIS 501 Introduction to Text Mining students at the University of Wisconsin-Madison (Fall 2021).
information-retrieval lucene text-retrieval
## UW-Madison LIS 501: Introduction to Text Mining (Fall 2021) ## A Simple Tutorial of Lucene's Indexing and Search Systems _Last Update: Oct 30, 2021_ You can find the source codes of all examples in ```edu.wisc.ischool.wiscir.examples```. Outline: * [Installation](https://github.com/jiepujiang/LuceneExamples#installation) * [Building an Index](https://github.com/jiepujiang/LuceneExamples#build-an-index) * [Working with an Index](https://github.com/jiepujiang/LuceneExamples#working-with-an-index) * [External and Internal IDs](https://github.com/jiepujiang/LuceneExamples#external-and-internal-ids) * [Frequency Posting List](https://github.com/jiepujiang/LuceneExamples#frequency-posting-list) * [Position Posting List](https://github.com/jiepujiang/LuceneExamples#position-posting-list) * [Accessing an Indexed Document](https://github.com/jiepujiang/LuceneExamples#accessing-an-indexed-document) * [Document and Field Length](https://github.com/jiepujiang/LuceneExamples#document-and-field-length) * [Iterate Through the Vocabulary](https://github.com/jiepujiang/LuceneExamples#iterate-through-the-vocabulary) * [Corpus-level Statistics](https://github.com/jiepujiang/LuceneExamples#corpus-level-statistics) * [Searching](https://github.com/jiepujiang/LuceneExamples#searching) ## Environment This tutorial uses: * Oracle JDK 11 * Lucene 8.10.1 ## Installation Apache Lucene is an open-source information retrieval toolkit written in Java. The easiest way to use Lucene in your project is to import it using Maven. You need to at least import ```lucene-core``` (just pasting the following to your ```pom.xml```'s dependencies). ```xml <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-core</artifactId> <version>8.10.1</version> </dependency> ``` You may also need ```lucene-analyzers-common``` and ```lucene-queryparser```. ```xml <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-analyzers-common</artifactId> <version>8.10.1</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-queryparser</artifactId> <version>8.10.1</version> </dependency> ``` If you do not use Maven, you need to download the jar files by yourself and include them into your project. Make sure you download the correct version. http://archive.apache.org/dist/lucene/java/8.10.1/ Support: * Official API documentation: http://lucene.apache.org/core/8_10_1/ ## Build an Index ### Corpus This tutorial uses a small trectext format corpus (trectext is a popular format for data collections in information retrieval research). You can download the corpus at https://github.com/jiepujiang/LuceneExamples/blob/master/example_corpus.gz The corpus includes the information of about 100 articles published in the SIGIR conferences. Each article (document) is in the following format: ```xml <DOC> <DOCNO>ACM-383972</DOCNO> <TITLE>Relevance based language models</TITLE> <AUTHOR>Victor Lavrenko, W. Bruce Croft</AUTHOR> <SOURCE>Proceedings of the 24th annual international ACM SIGIR conference on Research and development in information retrieval</SOURCE> <TEXT> We explore the relation between classical probabilistic models of information retrieval and the emerging language modeling approaches. It has long been recognized that the primary obstacle to effective performance of classical models is the need to estimate a relevance model : probabilities of words in the relevant class. We propose a novel technique for estimating these probabilities using the query alone. We demonstrate that our technique can produce highly accurate relevance models, addressing important notions of synonymy and polysemy. Our experiments show relevance models outperforming baseline language modeling systems on TREC retrieval and TDT tracking tasks. The main contribution of this work is an effective formal method for estimating a relevance model with no training data. </TEXT> </DOC> ``` A document has five fields. The DOCNO field specifies a unique ID (docno) for each article. We need to build an index for the other four text fields such that we can retrieve the documents. ### Text Processing and Indexing Options Many IR systems may require you to specify a few text processing options for indexing and retrieval: * **Tokenization** -- how to split a sequence of text into individual tokens (most tokens are just words). * **Case-folding** -- Most IR systems ignore letter case differences. But sometimes letter case may be important, e.g., **smart** and **SMART** (the SMART retrieval system). * **Stop words** -- You may want to remove some stop words such as **is**, **the**, and **to**. Removing stop words can significantly reduce index size. But it may also cause problems for some search queries such as ```to be or not to be```. We recommend you to keep them unless you cannot afford the disk space. * **Stemming** -- Stemmers generate [word stems](https://en.wikipedia.org/wiki/Word_stem). You may want to index stemmed words rather than the original ones to ignore minor word differences such as **model** vs. **models**. Stemming algorithms are not perfect and may get wrong. IR systems often use **Porter** or **Krovetz** stemming (Krovetz is more common for IR research and gives better results on most datasets based on my impression). Just a few examples for their differences: Original | Porter | Krovetz -------- | ------- | ------- relevance | relev | relevance based | base | base language | languag | language models | model | model An indexed document can have different fields to store different types of information. Most IR systems support two types of fields: * **Metadata field** is similar to a structured database record's field. They are stored and indexed as a whole without tokenization. It is suitable for data fields such as IDs (such as the docno field in our example corpus). * **Normal text field** is suitable for regular text contents (such as the other four fields in our example corpus). The texts are tokenized and indexed (using inverted index), such that you can search using normal text retrieval techniques. Some IR systems also support storing and indexing numeric values (and you can search for indexed numeric values using range or greater-than/less-than queries) and other data types. ### Lucene Examples This is an example program that uses Lucene to build an index for the example corpus. ```java // change the following input and output paths to your local ones String pathCorpus = "/home/jiepu/Downloads/example_corpus.gz"; String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); // Analyzer specifies options for text tokenization and normalization (e.g., stemming, stop words removal, case-folding) Analyzer analyzer = new Analyzer() { @Override protected TokenStreamComponents createComponents( String fieldName ) { // Step 1: tokenization (Lucene's StandardTokenizer is suitable for most text retrieval occasions) TokenStreamComponents ts = new TokenStreamComponents( new StandardTokenizer() ); // Step 2: transforming all tokens into lowercased ones (recommended for the majority of the problems) ts = new TokenStreamComponents( ts.getSource(), new LowerCaseFilter( ts.getTokenStream() ) ); // Step 3: whether to remove stop words (unnecessary to remove stop words unless you can't afford the extra disk space) // Uncomment the following line to remove stop words // ts = new TokenStreamComponents( ts.getSource(), new StopFilter( ts.getTokenStream(), EnglishAnalyzer.ENGLISH_STOP_WORDS_SET ) ); // Step 4: whether to apply stemming // Uncomment one of the following two lines to apply Krovetz or Porter stemmer (Krovetz is more common for IR research) ts = new TokenStreamComponents( ts.getSource(), new KStemFilter( ts.getTokenStream() ) ); // ts = new TokenStreamComponents( ts.getSource(), new PorterStemFilter( ts.getTokenStream() ) ); return ts; } }; IndexWriterConfig config = new IndexWriterConfig( analyzer ); // Note that IndexWriterConfig.OpenMode.CREATE will override the original index in the folder config.setOpenMode( IndexWriterConfig.OpenMode.CREATE ); // Lucene's default BM25Similarity stores document field length using a "low-precision" method. // Use the BM25SimilarityOriginal to store the original document length values in index. config.setSimilarity( new BM25SimilarityOriginal() ); IndexWriter ixwriter = new IndexWriter( dir, config ); // This is the field setting for metadata field (no tokenization, searchable, and stored). FieldType fieldTypeMetadata = new FieldType(); fieldTypeMetadata.setOmitNorms( true ); fieldTypeMetadata.setIndexOptions( IndexOptions.DOCS ); fieldTypeMetadata.setStored( true ); fieldTypeMetadata.setTokenized( false ); fieldTypeMetadata.freeze(); // This is the field setting for normal text field (tokenized, searchable, store document vectors) FieldType fieldTypeText = new FieldType(); fieldTypeText.setIndexOptions( IndexOptions.DOCS_AND_FREQS_AND_POSITIONS ); fieldTypeText.setStoreTermVectors( true ); fieldTypeText.setStoreTermVectorPositions( true ); fieldTypeText.setTokenized( true ); fieldTypeText.setStored( true ); fieldTypeText.freeze(); // You need to iteratively read each document from the example corpus file, // create a Document object for the parsed document, and add that // Document object by calling addDocument(). // Well, the following only works for small text files. DO NOT follow this part for large dataset files. InputStream instream = new GZIPInputStream( new FileInputStream( pathCorpus ) ); String corpusText = new String( IOUtils.toByteArray( instream ), "UTF-8" ); instream.close(); Pattern pattern = Pattern.compile( "<DOC>.+?<DOCNO>(.+?)</DOCNO>.+?<TITLE>(.+?)</TITLE>.+?<AUTHOR>(.+?)</AUTHOR>.+?<SOURCE>(.+?)</SOURCE>.+?<TEXT>(.+?)</TEXT>.+?</DOC>", Pattern.CASE_INSENSITIVE + Pattern.MULTILINE + Pattern.DOTALL ); Matcher matcher = pattern.matcher( corpusText ); while ( matcher.find() ) { String docno = matcher.group( 1 ).trim(); String title = matcher.group( 2 ).trim(); String author = matcher.group( 3 ).trim(); String source = matcher.group( 4 ).trim(); String text = matcher.group( 5 ).trim(); // Create a Document object Document d = new Document(); // Add each field to the document with the appropriate field type options d.add( new Field( "docno", docno, fieldTypeMetadata ) ); d.add( new Field( "title", title, fieldTypeText ) ); d.add( new Field( "author", author, fieldTypeText ) ); d.add( new Field( "source", source, fieldTypeText ) ); d.add( new Field( "text", text, fieldTypeText ) ); // Add the document to the index System.out.println( "indexing document " + docno ); ixwriter.addDocument( d ); } // remember to close both the index writer and the directory ixwriter.close(); dir.close(); ``` You can download the Lucene index for the example corpus at https://github.com/jiepujiang/LuceneExamples/blob/master/example_index_lucene.tar.gz ## Working with an Index ### Openning and Closing an Index Lucene uses the IndexReader class to operate all index files. ```java // modify to your index path String pathIndex = "index_example_lucene"; // First, open the directory Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); // Then, open an IndexReader to access your index IndexReader index = DirectoryReader.open( dir ); // Now, start working with your index using the IndexReader object index.numDocs(); // just an example: get the number of documents in the index // Remember to close both the IndexReader and the Directory after use index.close(); dir.close(); ``` ### External and Internal IDs In IR experiments, we often use some unique IDs to identify documents in the corpus. For example, our example corpus (and most TREC corpora) uses docno as the unique identifer. However, IR systems often use some internal IDs to identify the indexed documents. These IDs are often subject to change and not transparent to the users. So you often need to transform between external and internal IDs when locating documents in an index. To help you get started quickly, we provide a utility class ```edu.wisc.ischool.wiscir.utils.LuceneUtils``` to help you transform between the two IDs. ```java IndexReader index = DirectoryReader.open( dir ); // the name of the field storing external IDs (docnos) String fieldName = "docno"; int docid = 5; LuceneUtils.getDocno( index, fieldName, docid ); // get the docno for the internal docid = 5 String docno = "ACM-1835461"; LuceneUtils.findByDocno( index, fieldName, docno ); // get the internal docid for docno "ACM-1835461" ``` ### Frequency Posting List You can retrieve a term's posting list from an index. The simplest form is document-frequency posting list, where each entry in the list is a ```<docid,frequency>``` pair (only includes the documents containing that term). The entries are sorted by docids such that you can efficiently compare and merge multiple lists. The following program retrieves the posting list for a term ```reformulation``` in the ```text``` field from the Lucene index: ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; // Let's just retrieve the posting list for the term "reformulation" in the "text" field String field = "text"; String term = "reformulation"; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader index = DirectoryReader.open( dir ); // The following line reads the posting list of the term in a specific index field. // You need to encode the term into a BytesRef object, // which is the internal representation of a term used by Lucene. System.out.printf( "%-10s%-15s%-6s\n", "DOCID", "DOCNO", "FREQ" ); PostingsEnum posting = MultiTerms.getTermPostingsEnum( index, field, new BytesRef( term ), PostingsEnum.FREQS ); if ( posting != null ) { // if the term does not appear in any document, the posting object may be null int docid; // Each time you call posting.nextDoc(), it moves the cursor of the posting list to the next position // and returns the docid of the current entry (document). Note that this is an internal Lucene docid. // It returns PostingsEnum.NO_MORE_DOCS if you have reached the end of the posting list. while ( ( docid = posting.nextDoc() ) != PostingsEnum.NO_MORE_DOCS ) { String docno = LuceneUtils.getDocno( index, "docno", docid ); int freq = posting.freq(); // get the frequency of the term in the current document System.out.printf( "%-10d%-15s%-6d\n", docid, docno, freq ); } } index.close(); dir.close(); ``` The output is: ``` DOCID DOCNO FREQ 0 ACM-2009969 1 3 ACM-2010085 1 10 ACM-1835626 4 24 ACM-1277796 1 94 ACM-2484096 1 98 ACM-2348355 4 104 ACM-2609633 1 ``` Note that the internal docids are subject to change and are often different between different systems and indexes. ### Position Posting List You can also retrieve a posting list with term postions in each document. ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; // Let's just retrieve the posting list for the term "reformulation" in the "text" field String field = "text"; String term = "reformulation"; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader index = DirectoryReader.open( dir ); // we also print out external ID Set<String> fieldset = new HashSet<>(); fieldset.add( "docno" ); // The following line reads the posting list of the term in a specific index field. // You need to encode the term into a BytesRef object, // which is the internal representation of a term used by Lucene. System.out.printf( "%-10s%-15s%-10s%-20s\n", "DOCID", "DOCNO", "FREQ", "POSITIONS" ); PostingsEnum posting = MultiTerms.getTermPostingsEnum( index, field, new BytesRef( term ), PostingsEnum.POSITIONS ); if ( posting != null ) { // if the term does not appear in any document, the posting object may be null int docid; // Each time you call posting.nextDoc(), it moves the cursor of the posting list to the next position // and returns the docid of the current entry (document). Note that this is an internal Lucene docid. // It returns PostingsEnum.NO_MORE_DOCS if you have reached the end of the posting list. while ( ( docid = posting.nextDoc() ) != PostingsEnum.NO_MORE_DOCS ) { String docno = index.document( docid, fieldset ).get( "docno" ); int freq = posting.freq(); // get the frequency of the term in the current document System.out.printf( "%-10d%-15s%-10d", docid, docno, freq ); for ( int i = 0; i < freq; i++ ) { // Get the next occurrence position of the term in the current document. // Note that you need to make sure by yourself that you at most call this function freq() times. System.out.print( ( i > 0 ? "," : "" ) + posting.nextPosition() ); } System.out.println(); } } index.close(); dir.close(); ``` The output is: ``` DOCID DOCNO FREQ POSITIONS 0 ACM-2009969 1 117 3 ACM-2010085 1 56 10 ACM-1835626 4 1,35,73,88 24 ACM-1277796 1 157 94 ACM-2484096 1 12 98 ACM-2348355 4 84,117,156,177 104 ACM-2609633 1 153 ``` ### Accessing An Indexed Document You can access an indexed document from an index. An index document is usually stored as a document vector, which is a list of <word,frequency> pairs. ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; // let's just retrieve the document vector (only the "text" field) for the Document with internal ID=21 String field = "text"; int docid = 21; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader index = DirectoryReader.open( dir ); Terms vector = index.getTermVector( docid, field ); // Read the document's document vector. // You need to use TermsEnum to iterate each entry of the document vector (in alphabetical order). System.out.printf( "%-20s%-10s%-20s\n", "TERM", "FREQ", "POSITIONS" ); TermsEnum terms = vector.iterator(); PostingsEnum positions = null; BytesRef term; while ( ( term = terms.next() ) != null ) { String termstr = term.utf8ToString(); // Get the text string of the term. long freq = terms.totalTermFreq(); // Get the frequency of the term in the document. System.out.printf( "%-20s%-10d", termstr, freq ); // Lucene's document vector can also provide the position of the terms // (in case you stored these information in the index). // Here you are getting a PostingsEnum that includes only one document entry, i.e., the current document. positions = terms.postings( positions, PostingsEnum.POSITIONS ); positions.nextDoc(); // you still need to move the cursor // now accessing the occurrence position of the terms by iteratively calling nextPosition() for ( int i = 0; i < freq; i++ ) { System.out.print( ( i > 0 ? "," : "" ) + positions.nextPosition() ); } System.out.println(); } index.close(); dir.close(); ``` The output is: ``` TERM FREQ POSITIONS 1,800 1 92 2007 1 79 95 1 148 a 2 19,119 acquire 1 86 algorithm 1 84 along 1 100 analysis 1 103 and 3 42,111,132 appreciable 1 151 are 1 51 as 2 133,135 assessor 1 142 at 1 77 available 1 52 be 2 59,145 been 2 5,18 best 1 36 between 1 106 by 1 147 can 1 144 complete 1 15 cost 1 130 deal 1 21 deep 1 102 document 2 39,82 dozen 1 9 each 1 11 effective 1 131 effort 2 72,143 error 1 155 estimate 1 45 evaluate 6 2,26,46,62,121,154 few 3 49,126,136 for 1 89 great 1 20 has 2 3,17 how 2 32,43 in 2 53,153 increase 1 152 information 1 0 investigate 1 104 is 1 128 it 1 57 judge 3 12,41,71 judgment 6 30,50,88,114,127,140 light 1 54 many 1 64 measure 1 47 million 1 74 more 6 65,69,90,123,129,139 much 2 28,68 near 1 14 no 1 150 number 2 108,112 of 6 22,38,55,97,109,113 on 1 25 over 4 7,27,63,122 perform 1 6 point 1 120 possible 1 60 present 1 95 query 7 10,66,75,93,110,124,137 recent 1 23 reduce 1 146 relevance 1 87 reliable 1 134 result 1 96 retrieval 1 1 select 1 34 selection 1 83 set 2 31,37 several 1 8 should 1 58 show 1 115 small 1 29 than 1 91 that 1 116 the 4 35,73,98,107 there 1 16 this 1 56 to 7 13,33,40,44,61,85,118 total 2 70,141 track 2 76,99 tradeoff 1 105 trec 1 78 two 1 81 typically 1 4 up 1 117 use 1 80 we 1 94 when 1 48 with 4 101,125,138,149 without 1 67 work 1 24 ``` ### Document and Field Length By default, Lucene stores some low-precision values of field length as a form of "document norms" (see Lucene's ```org.apache.lucene.search.similarities.BM25Similarity.computeNorm(FieldInvertState state)``` for details). You can implement a customized Similarity class to store the full-precision document field length values. We have provided an example at ```edu.wisc.ischool.wiscir.examples.BM25SimilarityOriginal```. You will be able to access document length at search time (see ```edu.wisc.ischool.wiscir.examples.BM25SimilarityOriginal.BM25Scorer```). You may also compute the document field length on your own if you have stored document vectors at indexing time. The following program prints out the length of text field for each document in the example corpus, which also helps you understand how to work with a stored document vector: ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; String field = "text"; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader ixreader = DirectoryReader.open( dir ); // we also print out external ID Set<String> fieldset = new HashSet<>(); fieldset.add( "docno" ); // The following loop iteratively print the lengths of the documents in the index. System.out.printf( "%-10s%-15s%-10s\n", "DOCID", "DOCNO", "Length" ); for ( int docid = 0; docid < ixreader.maxDoc(); docid++ ) { String docno = ixreader.document( docid, fieldset ).get( "docno" ); int doclen = 0; TermsEnum termsEnum = ixreader.getTermVector( docid, field ).iterator(); while ( termsEnum.next() != null ) { doclen += termsEnum.totalTermFreq(); } System.out.printf( "%-10d%-15s%-10d\n", docid, docno, doclen ); } ixreader.close(); dir.close(); ``` The output is: ``` DOCID DOCNO Length 0 ACM-2009969 187 1 ACM-2009998 151 2 ACM-2010026 136 3 ACM-2010085 117 4 ACM-1835458 142 5 ACM-1835461 132 6 ACM-1835493 175 7 ACM-1835499 171 8 ACM-1835521 156 9 ACM-1835602 92 10 ACM-1835626 112 11 ACM-1835637 67 12 ACM-1835650 110 13 ACM-1572050 130 14 ACM-1572139 99 15 ACM-1572140 83 16 ACM-1390339 187 17 ACM-1390376 165 18 ACM-1390416 117 19 ACM-1390419 134 20 ACM-1390432 110 21 ACM-1390445 156 22 ACM-1277758 168 23 ACM-1277774 91 24 ACM-1277796 158 25 ACM-1277835 170 26 ACM-1277868 69 27 ACM-1277920 59 28 ACM-1277922 155 29 ACM-1277947 107 30 ACM-1148204 140 31 ACM-1148212 99 32 ACM-1148219 246 33 ACM-1148250 136 34 ACM-1148305 102 35 ACM-1148310 5 36 ACM-1148324 104 37 ACM-1076074 159 38 ACM-1076109 167 39 ACM-1076115 122 40 ACM-1076156 100 41 ACM-1076190 5 42 ACM-1009026 96 43 ACM-1009044 102 44 ACM-1009098 86 45 ACM-1009110 5 46 ACM-1009114 5 47 ACM-1008996 149 48 ACM-860437 1253 49 ACM-860479 167 50 ACM-860493 107 51 ACM-860548 5 52 ACM-860549 37 53 ACM-564394 95 54 ACM-564408 152 55 ACM-564429 151 56 ACM-564430 78 57 ACM-564441 5 58 ACM-564465 58 59 ACM-383954 105 60 ACM-383972 115 61 ACM-384022 120 62 ACM-345674 5 63 ACM-345546 137 64 ACM-312679 5 65 ACM-312687 5 66 ACM-312698 5 67 ACM-290954 5 68 ACM-290958 5 69 ACM-290987 5 70 ACM-291008 5 71 ACM-291043 5 72 ACM-258540 5 73 ACM-258547 5 74 ACM-243202 5 75 ACM-243274 5 76 ACM-243276 5 77 ACM-215328 5 78 ACM-215380 5 79 ACM-188586 5 80 ACM-160728 85 81 ACM-160760 5 82 ACM-160761 76 83 ACM-160689 81 84 ACM-133203 145 85 ACM-122864 5 86 ACM-636811 81 87 ACM-511797 5 88 ACM-636717 93 89 ACM-511760 195 90 ACM-511717 124 91 ACM-803136 129 92 ACM-2484097 206 93 ACM-2484069 249 94 ACM-2484096 191 95 ACM-2484060 278 96 ACM-2484139 157 97 ACM-2348296 157 98 ACM-2348355 189 99 ACM-2348408 157 100 ACM-2348426 80 101 ACM-2348440 5 102 ACM-2609628 170 103 ACM-2609467 136 104 ACM-2609633 245 105 ACM-2609503 126 106 ACM-2609485 109 107 ACM-2609536 194 ``` ### Iterate Through the Vocabulary The following program iterates through the vocabulary and print out the first 100 words in the vocabulary and some word statistics. ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; // Let's just retrieve the vocabulary of the "text" field String field = "text"; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader index = DirectoryReader.open( dir ); double N = index.numDocs(); double corpusLength = index.getSumTotalTermFreq( field ); System.out.printf( "%-30s%-10s%-10s%-10s%-10s\n", "TERM", "DF", "TOTAL_TF", "IDF", "p(w|c)" ); // Get the vocabulary of the index. Terms voc = MultiTerms.getTerms( index, field ); // You need to use TermsEnum to iterate each entry of the vocabulary. TermsEnum termsEnum = voc.iterator(); BytesRef term; int count = 0; while ( ( term = termsEnum.next() ) != null ) { count++; String termstr = term.utf8ToString(); // get the text string of the term int n = termsEnum.docFreq(); // get the document frequency (DF) of the term long freq = termsEnum.totalTermFreq(); // get the total frequency of the term double idf = Math.log( ( N + 1.0 ) / ( n + 1.0 ) ); // well, we normalize N and n by adding 1 to avoid n = 0 double pwc = freq / corpusLength; System.out.printf( "%-30s%-10d%-10d%-10.2f%-10.8f\n", termstr, n, freq, idf, pwc ); if ( count >= 100 ) { break; } } index.close(); dir.close(); ``` The output is: ``` TERM DF TOTAL_TF IDF p(w|c) 0.1 1 1 4.00 0.00008280 1 9 12 2.39 0.00099362 1,800 1 1 4.00 0.00008280 10 2 2 3.59 0.00016560 12 1 1 4.00 0.00008280 15 1 1 4.00 0.00008280 16.23 1 1 4.00 0.00008280 2 9 10 2.39 0.00082802 20 1 1 4.00 0.00008280 2002 2 2 3.59 0.00016560 2004 1 1 4.00 0.00008280 2007 1 1 4.00 0.00008280 23 2 2 3.59 0.00016560 25 1 1 4.00 0.00008280 3 4 6 3.08 0.00049681 30 1 1 4.00 0.00008280 4 2 2 3.59 0.00016560 40 1 1 4.00 0.00008280 5 2 2 3.59 0.00016560 50 2 2 3.59 0.00016560 51 1 1 4.00 0.00008280 6.4 1 1 4.00 0.00008280 6.48 1 1 4.00 0.00008280 60s 2 2 3.59 0.00016560 61 1 1 4.00 0.00008280 65 1 1 4.00 0.00008280 66 1 1 4.00 0.00008280 69 1 1 4.00 0.00008280 7 1 1 4.00 0.00008280 70 1 1 4.00 0.00008280 70s 1 1 4.00 0.00008280 80s 1 1 4.00 0.00008280 87 1 1 4.00 0.00008280 90s 1 1 4.00 0.00008280 92 1 1 4.00 0.00008280 94 1 1 4.00 0.00008280 95 3 4 3.31 0.00033121 a 80 338 0.30 0.02798708 abandon 1 1 4.00 0.00008280 ability 5 6 2.90 0.00049681 able 4 4 3.08 0.00033121 about 5 11 2.90 0.00091082 above 2 2 3.59 0.00016560 absence 1 1 4.00 0.00008280 abstract 29 29 1.29 0.00240126 academic 1 1 4.00 0.00008280 accept 1 1 4.00 0.00008280 acceptable 1 1 4.00 0.00008280 acceptance 1 1 4.00 0.00008280 access 4 7 3.08 0.00057961 accomplished 1 1 4.00 0.00008280 according 4 5 3.08 0.00041401 account 1 1 4.00 0.00008280 accumulator 1 1 4.00 0.00008280 accuracy 7 12 2.61 0.00099362 accurate 4 5 3.08 0.00041401 achieve 14 18 1.98 0.00149044 achievement 1 1 4.00 0.00008280 acknowledge 1 1 4.00 0.00008280 acm 1 1 4.00 0.00008280 acquire 2 2 3.59 0.00016560 across 6 8 2.75 0.00066242 action 1 1 4.00 0.00008280 active 1 1 4.00 0.00008280 actual 2 2 3.59 0.00016560 actually 1 1 4.00 0.00008280 ad 5 6 2.90 0.00049681 adapt 3 6 3.31 0.00049681 add 2 2 3.59 0.00016560 addition 4 4 3.08 0.00033121 additional 3 3 3.31 0.00024841 address 7 7 2.61 0.00057961 adequate 1 1 4.00 0.00008280 adhoc 1 1 4.00 0.00008280 adopt 2 2 3.59 0.00016560 advance 1 1 4.00 0.00008280 advanced 1 1 4.00 0.00008280 advances 3 4 3.31 0.00033121 advantage 3 3 3.31 0.00024841 advent 1 1 4.00 0.00008280 affected 2 2 3.59 0.00016560 affecting 1 1 4.00 0.00008280 affinity 1 1 4.00 0.00008280 after 2 2 3.59 0.00016560 against 2 3 3.59 0.00024841 aggregate 1 1 4.00 0.00008280 ai 1 2 4.00 0.00016560 aim 2 2 3.59 0.00016560 airline 1 1 4.00 0.00008280 algorithm 13 19 2.05 0.00157324 all 10 13 2.29 0.00107643 allocation 1 1 4.00 0.00008280 allow 6 7 2.75 0.00057961 allowance 1 1 4.00 0.00008280 alone 3 3 3.31 0.00024841 along 1 1 4.00 0.00008280 also 19 20 1.70 0.00165604 alternative 2 2 3.59 0.00016560 although 5 6 2.90 0.00049681 always 3 4 3.31 0.00033121 ``` ### Corpus-level Statistics ```IndexReader``` provides many corpus-level statistics. The follow program computes the IDF and corpus probability for the term ```reformulation```. ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; // Let's just count the IDF and P(w|corpus) for the word "reformulation" in the "text" field String field = "text"; String term = "reformulation"; Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader index = DirectoryReader.open( dir ); int N = index.numDocs(); // the total number of documents in the index int n = index.docFreq( new Term( field, term ) ); // get the document frequency of the term in the "text" field double idf = Math.log( ( N + 1.0 ) / ( n + 1.0 ) ); // well, we normalize N and n by adding 1 to avoid n = 0 System.out.printf( "%-30sN=%-10dn=%-10dIDF=%-8.2f\n", term, N, n, idf ); long corpusTF = index.totalTermFreq( new Term( field, term ) ); // get the total frequency of the term in the "text" field long corpusLength = index.getSumTotalTermFreq( field ); // get the total length of the "text" field double pwc = 1.0 * corpusTF / corpusLength; System.out.printf( "%-30slen(corpus)=%-10dfreq(%s)=%-10dP(%s|corpus)=%-10.6f\n", term, corpusLength, term, corpusTF, term, pwc ); // remember to close the index and the directory index.close(); dir.close(); ``` The output is: ``` reformulation N=108 n=7 IDF=2.61 reformulation len(corpus)=12077 freq(reformulation)=13 P(reformulation|corpus)=0.001076 ``` ## Searching The following program retrieves the top 10 articles for the query "query reformulation" from the example corpus using the BM25 search model. Note that we used the provided ```BM25SimilarityOriginal``` class for search because we built the example index using this class. If you built your index based on Lucene's default ```BM25Similarity```, you should use the default ```BM25Similarity``` for BM25 search. ```java String pathIndex = "/home/jiepu/Downloads/example_index_lucene"; // Analyzer specifies options for text tokenization and normalization (e.g., stemming, stop words removal, case-folding) Analyzer analyzer = new Analyzer() { @Override protected TokenStreamComponents createComponents( String fieldName ) { // Step 1: tokenization (Lucene's StandardTokenizer is suitable for most text retrieval occasions) TokenStreamComponents ts = new TokenStreamComponents( new StandardTokenizer() ); // Step 2: transforming all tokens into lowercased ones (recommended for the majority of the problems) ts = new TokenStreamComponents( ts.getSource(), new LowerCaseFilter( ts.getTokenStream() ) ); // Step 3: whether to remove stop words (unnecessary to remove stop words unless you can't afford the extra disk space) // Uncomment the following line to remove stop words // ts = new TokenStreamComponents( ts.getSource(), new StopFilter( ts.getTokenStream(), EnglishAnalyzer.ENGLISH_STOP_WORDS_SET ) ); // Step 4: whether to apply stemming // Uncomment one of the following two lines to apply Krovetz or Porter stemmer (Krovetz is more common for IR research) ts = new TokenStreamComponents( ts.getSource(), new KStemFilter( ts.getTokenStream() ) ); // ts = new TokenStreamComponents( ts.getSource(), new PorterStemFilter( ts.getTokenStream() ) ); return ts; } }; String field = "text"; // the field you hope to search for QueryParser parser = new QueryParser( field, analyzer ); // a query parser that transforms a text string into Lucene's query object String qstr = "query reformulation"; // this is the textual search query Query query = parser.parse( qstr ); // this is Lucene's query object // Okay, now let's open an index and search for documents Directory dir = FSDirectory.open( new File( pathIndex ).toPath() ); IndexReader index = DirectoryReader.open( dir ); // you need to create a Lucene searcher IndexSearcher searcher = new IndexSearcher( index ); // make sure the similarity class you are using is consistent with those being used for indexing searcher.setSimilarity( new BM25SimilarityOriginal() ); int top = 10; // Let's just retrieve the talk 10 results TopDocs docs = searcher.search( query, top ); // retrieve the top 10 results; retrieved results are stored in TopDocs System.out.printf( "%-10s%-20s%-10s%s\n", "Rank", "DocNo", "Score", "Title" ); int rank = 1; for ( ScoreDoc scoreDoc : docs.scoreDocs ) { int docid = scoreDoc.doc; double score = scoreDoc.score; String docno = LuceneUtils.getDocno( index, "docno", docid ); String title = LuceneUtils.getDocno( index, "title", docid ); System.out.printf( "%-10d%-20s%-10.4f%s\n", rank, docno, score, title ); rank++; } // remember to close the index and the directory index.close(); dir.close(); ``` The output is: ``` Rank DocNo Score Title 1 ACM-1835626 4.7595 Learning to rank query reformulations 2 ACM-2348355 4.3059 Generating reformulation trees for complex queries 3 ACM-2010085 2.9168 Modeling subset distributions for verbose queries 4 ACM-1277796 2.5193 Latent concept expansion using markov random fields 5 ACM-2484096 2.3669 Compact query term selection using topically related text 6 ACM-2009969 2.3407 CrowdLogging: distributed, private, and anonymous search logging 7 ACM-2609633 2.0099 Searching, browsing, and clicking in a search session: changes in user behavior by task and over time 8 ACM-2609467 0.3593 Diversifying query suggestions based on query documents 9 ACM-1835637 0.3551 Query term ranking based on dependency parsing of verbose queries 10 ACM-2348408 0.3544 Modeling higher-order term dependencies in information retrieval using query hypergraphs ```
1
rainbowdashlabs/sql-java
A extensive tutorial for SQL and Java with extra tips for minecraft
database mariadb mysql mysql-database spigot spigot-plugin tutorial
# Sql and Java The wiki is available [here](https://sql.chojo.de/en/)
1
exajobs/software-engineering-interview-collection
An ongoing curated list of awesome frameworks, important books and articles, talks and videos, libraries, learning tutorials, coding best practices and technical resources about technical interviews in Software Engineering.
interview-practice interview-preparation interview-questions software-architecture software-best-practices software-developer-website software-development software-engineering-books software-engineering-concepts software-engineering-domain software-engineering-excellence
# Guide to the Software Engineering Technical Interview Welcome to the software engineering interview Collection. An ongoing curated list of awesome frameworks, important books and articles, talks and videos, libraries, learning tutorials, coding best practices and technical resources about technical interviews in Software Engineering. > Thanks to our daily readers and contributors. The goal is to build a categorized community-driven collection of very well-known resources. Sharing, suggestions and contributions are always welcome! ## `Translations` - [简体中文](./README-zh-cn.md) ## `Table of Contents` - [YouTube](#youtube) - [The Daily Byte](#the-daily-byte) - [Instagram](#instagram) - [Articles](#articles) - [Online Judges](#online-judges) - [Live Coding Practice](#live-coding-practice) - [Data Structures](#data-structures) - [Algorithms](#algorithms) - [Greedy Algorithms](#greedy-algorithms) - [Bitmasks](#bitmasks) - [Runtime Analysis](#runtime-analysis) - [Video Lectures](#video-lectures) - [Interview Books](#interview-books) - [Computer Science News](#computer-science-news) - [Directory Tree](#directory-tree) ## `YouTube` * [Kevin Naughton Jr.](https://www.youtube.com/channel/UCKvwPt6BifPP54yzH99ff1g) ## `The Daily Byte` * [FAANG Interview Prep](https://bit.ly/2BaaSaK) ## `Instagram` * [Kevin Naughton Jr.](https://bit.ly/2SM8SLZ) ## `Articles` * [Starting Work](https://medium.com/@Naughton/starting-work-b06e10f6007e) ## Online Judges * [LeetCode](https://leetcode.com/) * [Virtual Judge](https://vjudge.net/) * [CareerCup](https://www.careercup.com/) * [HackerRank](https://www.hackerrank.com/) * [CodeFights](https://codefights.com/) * [Kattis](https://open.kattis.com/) * [HackerEarth](https://www.hackerearth.com) * [Codility](https://codility.com/programmers/lessons/1-iterations/) * [Code Forces](http://codeforces.com/) * [Code Chef](https://www.codechef.com/) * [Sphere Online Judge - SPOJ](http://www.spoj.com/) * [InterviewBit](https://www.interviewbit.com/) ## `Live Coding Practice` * [Pramp](https://www.pramp.com/ref/gt4) * [Gainlo](http://www.gainlo.co/#!/) * [Refdash](https://refdash.com/) * [Interviewing.io](https://www.interviewing.io/) ## `Data Structures` ### Linked List * A *Linked List* is a linear collection of data elements, called nodes, each pointing to the next node by means of a pointer. It is a data structure consisting of a group of nodes which together represent a sequence. * **Singly-linked list**: linked list in which each node points to the next node and the last node points to null * **Doubly-linked list**: linked list in which each node has two pointers, p and n, such that p points to the previous node and n points to the next node; the last node's n pointer points to null * **Circular-linked list**: linked list in which each node points to the next node and the last node points back to the first node * Time Complexity: * Access: `O(n)` * Search: `O(n)` * Insert: `O(1)` * Remove: `O(1)` ### Stack * A *Stack* is a collection of elements, with two principle operations: *push*, which adds to the collection, and *pop*, which removes the most recently added element * **Last in, first out data structure (LIFO)**: the most recently added object is the first to be removed * Time Complexity: * Access: `O(n)` * Search: `O(n)` * Insert: `O(1)` * Remove: `O(1)` ### Queue * A *Queue* is a collection of elements, supporting two principle operations: *enqueue*, which inserts an element into the queue, and *dequeue*, which removes an element from the queue * **First in, first out data structure (FIFO)**: the oldest added object is the first to be removed * Time Complexity: * Access: `O(n)` * Search: `O(n)` * Insert: `O(1)` * Remove: `O(1)` ### Tree * A *Tree* is an undirected, connected, acyclic graph ### Binary Tree * A *Binary Tree* is a tree data structure in which each node has at most two children, which are referred to as the *left child* and *right child* * **Full Tree**: a tree in which every node has either 0 or 2 children * **Perfect Binary Tree**: a binary tree in which all interior nodes have two children and all leave have the same depth * **Complete Tree**: a binary tree in which every level *except possibly the last* is full and all nodes in the last level are as far left as possible ### Binary Search Tree * A binary search tree, sometimes called BST, is a type of binary tree which maintains the property that the value in each node must be greater than or equal to any value stored in the left sub-tree, and less than or equal to any value stored in the right sub-tree * Time Complexity: * Access: `O(log(n))` * Search: `O(log(n))` * Insert: `O(log(n))` * Remove: `O(log(n))` <img src="/images/BST.png?raw=true" alt="Binary Search Tree" width="400" height="500"> ### Trie * A trie, sometimes called a radix or prefix tree, is a kind of search tree that is used to store a dynamic set or associative array where the keys are usually Strings. No node in the tree stores the key associated with that node; instead, its position in the tree defines the key with which it is associated. All the descendants of a node have a common prefix of the String associated with that node, and the root is associated with the empty String. ![Alt text](/images/trie.png?raw=true "Trie") ### Fenwick Tree * A Fenwick tree, sometimes called a binary indexed tree, is a tree in concept, but in practice is implemented as an implicit data structure using an array. Given an index in the array representing a vertex, the index of a vertex's parent or child is calculated through bitwise operations on the binary representation of its index. Each element of the array contains the pre-calculated sum of a range of values, and by combining that sum with additional ranges encountered during an upward traversal to the root, the prefix sum is calculated * Time Complexity: * Range Sum: `O(log(n))` * Update: `O(log(n))` ![Alt text](/images/fenwickTree.png?raw=true "Fenwick Tree") ### Segment Tree * A Segment tree, is a tree data structure for storing intervals, or segments. It allows querying which of the stored segments contain a given point * Time Complexity: * Range Query: `O(log(n))` * Update: `O(log(n))` ![Alt text](/images/segmentTree.png?raw=true "Segment Tree") ### Heap * A *Heap* is a specialized tree based structure data structure that satisfies the *heap* property: if A is a parent node of B, then the key (the value) of node A is ordered with respect to the key of node B with the same ordering applying across the entire heap. A heap can be classified further as either a "max heap" or a "min heap". In a max heap, the keys of parent nodes are always greater than or equal to those of the children and the highest key is in the root node. In a min heap, the keys of parent nodes are less than or equal to those of the children and the lowest key is in the root node * Time Complexity: * Access Max / Min: `O(1)` * Insert: `O(log(n))` * Remove Max / Min: `O(log(n))` <img src="/images/heap.png?raw=true" alt="Max Heap" width="400" height="500"> ### Hashing * *Hashing* is used to map data of an arbitrary size to data of a fixed size. The values returned by a hash function are called hash values, hash codes, or simply hashes. If two keys map to the same value, a collision occurs * **Hash Map**: a *hash map* is a structure that can map keys to values. A hash map uses a hash function to compute an index into an array of buckets or slots, from which the desired value can be found. * Collision Resolution * **Separate Chaining**: in *separate chaining*, each bucket is independent, and contains a list of entries for each index. The time for hash map operations is the time to find the bucket (constant time), plus the time to iterate through the list * **Open Addressing**: in *open addressing*, when a new entry is inserted, the buckets are examined, starting with the hashed-to-slot and proceeding in some sequence, until an unoccupied slot is found. The name open addressing refers to the fact that the location of an item is not always determined by its hash value ![Alt text](/images/hash.png?raw=true "Hashing") ### Graph * A *Graph* is an ordered pair of G = (V, E) comprising a set V of vertices or nodes together with a set E of edges or arcs, which are 2-element subsets of V (i.e. an edge is associated with two vertices, and that association takes the form of the unordered pair comprising those two vertices) * **Undirected Graph**: a graph in which the adjacency relation is symmetric. So if there exists an edge from node u to node v (u -> v), then it is also the case that there exists an edge from node v to node u (v -> u) * **Directed Graph**: a graph in which the adjacency relation is not symmetric. So if there exists an edge from node u to node v (u -> v), this does *not* imply that there exists an edge from node v to node u (v -> u) <img src="/images/graph.png?raw=true" alt="Graph" width="400" height="500"> ## Algorithms ### Sorting #### Quicksort * Stable: `No` * Time Complexity: * Best Case: `O(nlog(n))` * Worst Case: `O(n^2)` * Average Case: `O(nlog(n))` ![Alt text](/images/quicksort.gif?raw=true "Quicksort") #### Mergesort * *Mergesort* is also a divide and conquer algorithm. It continuously divides an array into two halves, recurses on both the left subarray and right subarray and then merges the two sorted halves * Stable: `Yes` * Time Complexity: * Best Case: `O(nlog(n))` * Worst Case: `O(nlog(n))` * Average Case: `O(nlog(n))` ![Alt text](/images/mergesort.gif?raw=true "Mergesort") #### Bucket Sort * *Bucket Sort* is a sorting algorithm that works by distributing the elements of an array into a number of buckets. Each bucket is then sorted individually, either using a different sorting algorithm, or by recursively applying the bucket sorting algorithm * Time Complexity: * Best Case: `Ω(n + k)` * Worst Case: `O(n^2)` * Average Case:`Θ(n + k)` ![Alt text](/images/bucketsort.png?raw=true "Bucket Sort") #### Radix Sort * *Radix Sort* is a sorting algorithm that like bucket sort, distributes elements of an array into a number of buckets. However, radix sort differs from bucket sort by 're-bucketing' the array after the initial pass as opposed to sorting each bucket and merging * Time Complexity: * Best Case: `Ω(nk)` * Worst Case: `O(nk)` * Average Case: `Θ(nk)` ### Graph Algorithms #### Depth First Search * *Depth First Search* is a graph traversal algorithm which explores as far as possible along each branch before backtracking * Time Complexity: `O(|V| + |E|)` ![Alt text](/images/dfsbfs.gif?raw=true "DFS / BFS Traversal") #### Breadth First Search * *Breadth First Search* is a graph traversal algorithm which explores the neighbor nodes first, before moving to the next level neighbors * Time Complexity: `O(|V| + |E|)` ![Alt text](/images/dfsbfs.gif?raw=true "DFS / BFS Traversal") #### Topological Sort * *Topological Sort* is the linear ordering of a directed graph's nodes such that for every edge from node u to node v, u comes before v in the ordering * Time Complexity: `O(|V| + |E|)` #### Dijkstra's Algorithm * *Dijkstra's Algorithm* is an algorithm for finding the shortest path between nodes in a graph * Time Complexity: `O(|V|^2)` ![Alt text](/images/dijkstra.gif?raw=true "Dijkstra's") #### Bellman-Ford Algorithm * *Bellman-Ford Algorithm* is an algorithm that computes the shortest paths from a single source node to all other nodes in a weighted graph * Although it is slower than Dijkstra's, it is more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers * Time Complexity: * Best Case: `O(|E|)` * Worst Case: `O(|V||E|)` ![Alt text](/images/bellman-ford.gif?raw=true "Bellman-Ford") #### Floyd-Warshall Algorithm * *Floyd-Warshall Algorithm* is an algorithm for finding the shortest paths in a weighted graph with positive or negative edge weights, but no negative cycles * A single execution of the algorithm will find the lengths (summed weights) of the shortest paths between *all* pairs of nodes * Time Complexity: * Best Case: `O(|V|^3)` * Worst Case: `O(|V|^3)` * Average Case: `O(|V|^3)` #### Prim's Algorithm * *Prim's Algorithm* is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph. In other words, Prim's find a subset of edges that forms a tree that includes every node in the graph * Time Complexity: `O(|V|^2)` ![Alt text](/images/prim.gif?raw=true "Prim's Algorithm") #### Kruskal's Algorithm * *Kruskal's Algorithm* is also a greedy algorithm that finds a minimum spanning tree in a graph. However, in Kruskal's, the graph does not have to be connected * Time Complexity: `O(|E|log|V|)` ![Alt text](/images/kruskal.gif?raw=true "Kruskal's Algorithm") ## `Greedy Algorithms` * *Greedy Algorithms* are algorithms that make locally optimal choices at each step in the hope of eventually reaching the globally optimal solution * Problems must exhibit two properties in order to implement a Greedy solution: * Optimal Substructure * An optimal solution to the problem contains optimal solutions to the given problem's subproblems * The Greedy Property * An optimal solution is reached by "greedily" choosing the locally optimal choice without ever reconsidering previous choices * Example - Coin Change * Given a target amount V cents and a list of denominations of n coins, i.e. we have coinValue[i] (in cents) for coin types i from [0...n - 1], what is the minimum number of coins that we must use to represent amount V? Assume that we have an unlimited supply of coins of any type * Coins - Penny (1 cent), Nickel (5 cents), Dime (10 cents), Quarter (25 cents) * Assume V = 41. We can use the Greedy algorithm of continuously selecting the largest coin denomination less than or equal to V, subtract that coin's value from V, and repeat. * V = 41 | 0 coins used * V = 16 | 1 coin used (41 - 25 = 16) * V = 6 | 2 coins used (16 - 10 = 6) * V = 1 | 3 coins used (6 - 5 = 1) * V = 0 | 4 coins used (1 - 1 = 0) * Using this algorithm, we arrive at a total of 4 coins which is optimal ## `Bitmasks` * Bitmasking is a technique used to perform operations at the bit level. Leveraging bitmasks often leads to faster runtime complexity and helps limit memory usage * Test kth bit: `s & (1 << k);` * Set kth bit: `s |= (1 << k);` * Turn off kth bit: `s &= ~(1 << k);` * Toggle kth bit: `s ^= (1 << k);` * Multiple by 2<sup>n</sup>: `s << n;` * Divide by 2<sup>n</sup>: `s >> n;` * Intersection: `s & t;` * Union: `s | t;` * Set Subtraction: `s & ~t;` * Extract lowest set bit: `s & (-s);` * Extract lowest unset bit: `~s & (s + 1);` * Swap Values: ``` x ^= y; y ^= x; x ^= y; ``` ## `Runtime Analysis` #### Big O Notation * *Big O Notation* is used to describe the upper bound of a particular algorithm. Big O is used to describe worst case scenarios ![Alt text](/images/bigO.png?raw=true "Theta Notation") #### Little O Notation * *Little O Notation* is also used to describe an upper bound of a particular algorithm; however, Little O provides a bound that is not asymptotically tight #### Big Ω Omega Notation * *Big Omega Notation* is used to provide an asymptotic lower bound on a particular algorithm ![Alt text](/images/bigOmega.png?raw=true "Theta Notation") #### Little ω Omega Notation * *Little Omega Notation* is used to provide a lower bound on a particular algorithm that is not asymptotically tight #### Theta Θ Notation * *Theta Notation* is used to provide a bound on a particular algorithm such that it can be "sandwiched" between two constants (one for an upper limit and one for a lower limit) for sufficiently large values ![Alt text](/images/theta.png?raw=true "Theta Notation") ## `Video Lectures` * Data Structures * [UC Berkeley Data Structures](https://archive.org/details/ucberkeley-webcast?&and[]=subject%3A%22Computer%20Science%22&and[]=subject%3A%22CS%22) * [MIT Advanced Data Structures](https://www.youtube.com/watch?v=T0yzrZL1py0&list=PLUl4u3cNGP61hsJNdULdudlRL493b-XZf&index=1) * Algorithms * [MIT Introduction to Algorithms](https://www.youtube.com/watch?v=HtSuA80QTyo&list=PLUl4u3cNGP61Oq3tWYp6V_F-5jb5L2iHb&index=1) * [MIT Advanced Algorithms](https://www.youtube.com/playlist?list=PL6ogFv-ieghdoGKGg2Bik3Gl1glBTEu8c) * [UC Berkeley Algorithms](https://archive.org/details/ucberkeley-webcast?&and[]=subject%3A%22Computer%20Science%22&and[]=subject%3A%22CS%22) ## `Interview Books` * [Competitive Programming 3 - Steven Halim & Felix Halim](https://www.amazon.com/Competitive-Programming-3rd-Steven-Halim/dp/B00FG8MNN8) * [Cracking The Coding Interview - Gayle Laakmann McDowell](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850/ref=sr_1_1?s=books&ie=UTF8) * [Cracking The PM Interview - Gayle Laakmann McDowell & Jackie Bavaro](https://www.amazon.com/Cracking-PM-Interview-Product-Technology-ebook/dp/B00ISYMUR6/ref=sr_1_1?s=books&ie=UTF8) * [Introduction to Algorithms - Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest & Clifford Stein](https://www.amazon.com/Introduction-Algorithms-3rd-MIT-Press/dp/0262033844/ref=sr_1_1?ie=UTF8&qid=1490295989&sr=8-1&keywords=Introduction+to+Algorithms) ## `Computer Science News` * [Hacker News](https://news.ycombinator.com/) * [Lobsters](https://lobste.rs/) ## `Directory Tree` ``` . ├── Array │   ├── bestTimeToBuyAndSellStock.java │   ├── findTheCelebrity.java │   ├── gameOfLife.java │   ├── increasingTripletSubsequence.java │   ├── insertInterval.java │   ├── longestConsecutiveSequence.java │   ├── maximumProductSubarray.java │   ├── maximumSubarray.java │   ├── mergeIntervals.java │   ├── missingRanges.java │   ├── productOfArrayExceptSelf.java │   ├── rotateImage.java │   ├── searchInRotatedSortedArray.java │   ├── spiralMatrixII.java │   ├── subsetsII.java │   ├── subsets.java │   ├── summaryRanges.java │   ├── wiggleSort.java │   └── wordSearch.java ├── Backtracking │   ├── androidUnlockPatterns.java │   ├── generalizedAbbreviation.java │   └── letterCombinationsOfAPhoneNumber.java ├── BinarySearch │   ├── closestBinarySearchTreeValue.java │   ├── firstBadVersion.java │   ├── guessNumberHigherOrLower.java │   ├── pow(x,n).java │   └── sqrt(x).java ├── BitManipulation │   ├── binaryWatch.java │   ├── countingBits.java │   ├── hammingDistance.java │   ├── maximumProductOfWordLengths.java │   ├── numberOf1Bits.java │   ├── sumOfTwoIntegers.java │   └── utf-8Validation.java ├── BreadthFirstSearch │   ├── binaryTreeLevelOrderTraversal.java │   ├── cloneGraph.java │   ├── pacificAtlanticWaterFlow.java │   ├── removeInvalidParentheses.java │   ├── shortestDistanceFromAllBuildings.java │   ├── symmetricTree.java │   └── wallsAndGates.java ├── DepthFirstSearch │   ├── balancedBinaryTree.java │   ├── battleshipsInABoard.java │   ├── convertSortedArrayToBinarySearchTree.java │   ├── maximumDepthOfABinaryTree.java │   ├── numberOfIslands.java │   ├── populatingNextRightPointersInEachNode.java │   └── sameTree.java ├── Design │   └── zigzagIterator.java ├── DivideAndConquer │   ├── expressionAddOperators.java │   └── kthLargestElementInAnArray.java ├── DynamicProgramming │   ├── bombEnemy.java │   ├── climbingStairs.java │   ├── combinationSumIV.java │   ├── countingBits.java │   ├── editDistance.java │   ├── houseRobber.java │   ├── paintFence.java │   ├── paintHouseII.java │   ├── regularExpressionMatching.java │   ├── sentenceScreenFitting.java │   ├── uniqueBinarySearchTrees.java │   └── wordBreak.java ├── HashTable │   ├── binaryTreeVerticalOrderTraversal.java │   ├── findTheDifference.java │   ├── groupAnagrams.java │   ├── groupShiftedStrings.java │   ├── islandPerimeter.java │   ├── loggerRateLimiter.java │   ├── maximumSizeSubarraySumEqualsK.java │   ├── minimumWindowSubstring.java │   ├── sparseMatrixMultiplication.java │   ├── strobogrammaticNumber.java │   ├── twoSum.java │   └── uniqueWordAbbreviation.java ├── LinkedList │   ├── addTwoNumbers.java │   ├── deleteNodeInALinkedList.java │   ├── mergeKSortedLists.java │   ├── palindromeLinkedList.java │   ├── plusOneLinkedList.java │   ├── README.md │   └── reverseLinkedList.java ├── Queue │   └── movingAverageFromDataStream.java ├── README.md ├── Sort │   ├── meetingRoomsII.java │   └── meetingRooms.java ├── Stack │   ├── binarySearchTreeIterator.java │   ├── decodeString.java │   ├── flattenNestedListIterator.java │   └── trappingRainWater.java ├── String │   ├── addBinary.java │   ├── countAndSay.java │   ├── decodeWays.java │   ├── editDistance.java │   ├── integerToEnglishWords.java │   ├── longestPalindrome.java │   ├── longestSubstringWithAtMostKDistinctCharacters.java │   ├── minimumWindowSubstring.java │   ├── multiplyString.java │   ├── oneEditDistance.java │   ├── palindromePermutation.java │   ├── README.md │   ├── reverseVowelsOfAString.java │   ├── romanToInteger.java │   ├── validPalindrome.java │   └── validParentheses.java ├── Tree │   ├── binaryTreeMaximumPathSum.java │   ├── binaryTreePaths.java │   ├── inorderSuccessorInBST.java │   ├── invertBinaryTree.java │   ├── lowestCommonAncestorOfABinaryTree.java │   ├── sumOfLeftLeaves.java │   └── validateBinarySearchTree.java ├── Trie │   ├── addAndSearchWordDataStructureDesign.java │   ├── implementTrie.java │   └── wordSquares.java └── TwoPointers ├── 3Sum.java ├── 3SumSmaller.java ├── mergeSortedArray.java ├── minimumSizeSubarraySum.java ├── moveZeros.java ├── removeDuplicatesFromSortedArray.java ├── reverseString.java └── sortColors.java 18 directories, 124 files ``` Credit to our friend - Maintainer - [Kevin Naughton Jr.] ## `License` [![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/88x31.png)](https://creativecommons.org/licenses/by-sa/4.0/) This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
0
kezhenxu94/nettoy
A bottom-up approach to learn the Netty project
build-your-own-x eventloop nettoy netty networking nio reactor tutorial-code tutorial-sourcecode tutorials
# Nettoy A bottom-up approach to learn the [Netty](http://github.com/netty/netty) project, by creating your own **Net**ty **toy**. ![Feynman](blog/feynman.png) ## Table of Content - [Build Your Own Netty - Foreword](blog/0.%20Build%20Your%20Own%20Netty%20-%20Foreword.md) - [Build Your Own Netty - Start from BIO](blog/1.%20Build%20Your%20Own%20Netty%20-%20Start%20from%20BIO.md) - [Build Your Own Netty - Move to NIO](blog/2.%20Build%20Your%20Own%20Netty%20-%20Move%20to%20NIO.md) - [Build Your Own Netty - Reactor Pattern](blog/3.%20Build%20Your%20Own%20Netty%20-%20Reactor%20Pattern.md) - [Build Your Own Netty - Event Driven](blog/4.%20Build%20Your%20Own%20Netty%20-%20Event%20Driven) - Netty - An Overview - Netty Core Components - EventLoop - Netty Core Components - Channel - Netty Core Components - Handler - Netty Core Components - Pipeline - Netty Performance (Series)
0
intldds/ddd-domain-driven-design
Tutorial on DDD (Domain-Driven Design), by building a Web App with the theme Personal Finance Management". Adapted from a group project in university."
ddd ddd-architecture ddd-example ddd-patterns grasp software-architecture software-engineering solid-principles
null
1
saadibrahim/react-native-deep-links
Files for a tutorial on how to implement deep linking in React Native using Universal Links and URL schema.
deep-linking javascript react-native react-navigation tutorial
# React Native deep links tutorial Files for React Native deep links tutorial. Tutorial URL: https://youtu.be/rvDq2WMU4mw Blog Post: https://saadibrah.im/implement-deep-linking-in-react-native-apps-using-universal-links-and-url-schema/ ### Libraries or tools used * React Native * React Navigation ### Useful links * [Difference between the two types of deep links](https://medium.com/wolox/ios-deep-linking-url-scheme-vs-universal-links-50abd3802f97) * [Supporting Associated Domains – iOS](https://developer.apple.com/documentation/safariservices/supporting_associated_domains) * [React Native Linking Library](https://reactnative.dev/docs/linking) * [Deep linking with React Navigation](https://reactnavigation.org/docs/deep-linking/#universal-links) * [Configuring links – React Navigation](https://reactnavigation.org/docs/configuring-links/) * [Handling Android App Links](https://developer.android.com/training/app-links) * [Create Deep Links to App Content – Android](https://developer.android.com/training/app-links/deep-linking) * [Declare website associations – Android](https://developer.android.com/training/app-links/verify-site-associations#web-assoc) ### Commands to test deep links ```sh ## Android adb shell am start -W -a android.intent.action.VIEW -d "saadibrahim://Details" com.deeplinktutorial adb shell am start -W -a android.intent.action.VIEW -d "https://saadibrah.im/Details" com.deeplinktutorial ## iOS xcrun simctl openurl booted "saadibrahim://Details" xcrun simctl openurl booted "https://saadibrah.im/Details" ``` Replace the URLs with your URL in the above commands and replace `com.deeplinktutorial` with your application ID. ### Running the app in simulator To run the app you need yarn package manager. Once you have yarn installed, clone the repo and navigate to it's directory in terminal and run the following commands: ```sh ## to install the dependencies yarn ## to run the app on iOS cd packages/mobile/ios/ && pod install && cd .. react-native run-ios ## to run the app on Android react-native run-android ```
1
tunjos/RxJava2-RxMarbles-Samples
RxJava 2 RxMarbles Samples
example examples java learning-rxjava rxjava rxjava2 sample samples tutorial tutorials
RxJava 2 RxMarbles Samples ============== This repository contains RxJava 2 implementations of the sample operators found in the [RxMarbles Android Application](https://play.google.com/store/apps/details?id=com.moonfleet.rxmarbles). Please download the app for a more interactive tutorial. ### Running Simply import the project using intelliJ IDEA and run the corresponding run configurations. ### Awesome Links [RxMarbles Android Application](https://play.google.com/store/apps/details?id=com.moonfleet.rxmarbles) [ReactiveX](http://reactivex.io/) [ReactiveX Operators](http://reactivex.io/documentation/operators.html) [RxMarbles](http://rxmarbles.com/) [RxJava Wiki](https://github.com/ReactiveX/RxJava/wiki) ### Dependencies [RxJava2](https://github.com/ReactiveX/RxJava) [RxJava2Extensions](https://github.com/akarnokd/RxJava2Extensions) ## [Transforming](https://github.com/tunjos/RxJava2-RxMarbles-Samples/blob/master/Transforming/src/Main.java) <img src="Transforming/operators/map.png" width="250"> <img src="Transforming/operators/flatMap.png" width="250"> <img src="Transforming/operators/buffer.png" width="250"> <img src="Transforming/operators/groupBy.png" width="250"> <img src="Transforming/operators/scan.png" width="250"> ## [Filtering](https://github.com/tunjos/RxJava2-RxMarbles-Samples/blob/master/Filtering/src/Main.java) <img src="Filtering/operators/debounce.png" width="250"> <img src="Filtering/operators/distinct.png" width="250"> <img src="Filtering/operators/distinctUntilChanged.png" width="250"> <img src="Filtering/operators/elementAt.png" width="250"> <img src="Filtering/operators/filter.png" width="250"> <img src="Filtering/operators/first.png" width="250"> <img src="Filtering/operators/last.png" width="250"> <img src="Filtering/operators/skip.png" width="250"> <img src="Filtering/operators/skipLast.png" width="250"> <img src="Filtering/operators/take.png" width="250"> <img src="Filtering/operators/takeLast.png" width="250"> <img src="Filtering/operators/ignoreElements.png" width="250"> ## [Combining](https://github.com/tunjos/RxJava2-RxMarbles-Samples/blob/master/Combining/src/Main.java) <img src="Combining/operators/startWith.png" width="250"> <img src="Combining/operators/amb.png" width="250"> <img src="Combining/operators/combineLatest.png" width="250"> <img src="Combining/operators/concat.png" width="250"> <img src="Combining/operators/merge.png" width="250"> <img src="Combining/operators/sequenceEqual.png" width="250"> <img src="Combining/operators/zip.png" width="250"> ## [Error Handling](https://github.com/tunjos/RxJava2-RxMarbles-Samples/blob/master/ErrorHandling/src/Main.java) <img src="ErrorHandling/operators/onErrorReturn.png" width="250"> <img src="ErrorHandling/operators/onErrorResumeNext.png" width="250"> ## [Conditional](https://github.com/tunjos/RxJava2-RxMarbles-Samples/blob/master/Conditional/src/Main.java) <img src="Conditional/operators/all.png" width="250"> <img src="Conditional/operators/contains.png" width="250"> <img src="Conditional/operators/skipWhile.png" width="250"> <img src="Conditional/operators/skipUntil.png" width="250"> <img src="Conditional/operators/takeWhile.png" width="250"> <img src="Conditional/operators/takeUntil.png" width="250"> ## [Math](https://github.com/tunjos/RxJava2-RxMarbles-Samples/blob/master/Math/src/Main.java) <img src="Math/operators/average.png" width="250"> <img src="Math/operators/sum.png" width="250"> <img src="Math/operators/reduce.png" width="250"> <img src="Math/operators/count.png" width="250"> NB -------- All screenshots taken directly from the [RxMarbles Android Application](https://play.google.com/store/apps/details?id=com.moonfleet.rxmarbles). License -------- Copyright 2017 Tunji Olu-Taiwo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0
siddhesh-tamhanekar/media_player
An flutter media player to make media streaming apps effortlessly! read getting started tutorial on https://medium.com/@tamhanekar.siddhesh95/integrate-media-player-into-your-flutter-application-23040213f0c9
audio-player flutter flutter-audio-player flutter-media-player flutter-video-player media-player video-player
# media_player(android support only) This media player uses an google Exoplayer in android to play the media files. **Note: the media player is inspired and developer by google plugin video_player and uses most code of it and has extra features.** If you don't want to bother with implementing ui widgets and need a readymade video player Please visit http://flutter-media-player.cf Github Link : https://github.com/siddhesh-tamhanekar/media_player Getting Started Tutorial at medium: https://medium.com/google-exoplayer/dynamic-playlists-with-exoplayer-6f53e54a56c0 Please subscribe to our mailing list for get new updates. https://goo.gl/forms/RTnApDBve4scuUAu2 ## Features * Can play Audio and Video File URLs (mp3, mp4, m3u8 etc) * Playlist Support * Single Media File Play Support * Control over player (play, pause, next, prev, seek etc.) * can be used to create background player(mostly used for audio playing). * Persistent Notification * Retry method in order to make player start from where left (if internet connection was problem) ## Screenshots <p float="left"> <img src='https://raw.githubusercontent.com/siddhesh-tamhanekar/siddhesh-tamhanekar.github.io/master/images/screenshots/sc1.png' width="200px" style='float:left' > <img src='https://raw.githubusercontent.com/siddhesh-tamhanekar/siddhesh-tamhanekar.github.io/master/images/screenshots/sc2.png' width="200px" > <img src='https://raw.githubusercontent.com/siddhesh-tamhanekar/siddhesh-tamhanekar.github.io/master/images/screenshots/sc4.png' width="200px" > <img src='https://raw.githubusercontent.com/siddhesh-tamhanekar/siddhesh-tamhanekar.github.io/master/images/screenshots/sc5.png' width="200px" > </p> ## Getting Started #### STEP 1: add dependancy into pubspec.yaml file #### STEP 2: Add following code into AndroidManifest.xml **Add service android/app/AndroidManifest.xml** ``` <service android:name="com.example.mediaplayer.AudioService" android:enabled="true" android:exported="false"> </service> ``` **Add the permission for foreground service in same AndroidManifest.xml .** ``` <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> ``` --- #### STEP 3: Add the following dependency into android/app/build.graddle ``` android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } ``` ## Simple Example ``` import 'package:flutter/material.dart'; import 'package:media_player/data_sources.dart'; import 'package:media_player/media_player.dart'; import 'package:media_player/ui.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: MyVideoScreen(), ), ); } } class MyVideoScreen extends StatefulWidget { @override _MyVideoScreenState createState() => _MyVideoScreenState(); } class _MyVideoScreenState extends State<MyVideoScreen> { MediaPlayer player; MediaFile song1 = MediaFile( title: "Song 1", type: "video", source: "http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8", desc: "Note from Apple", ); @override void initState() { // first argument for isBackground next for showNotification. player = MediaPlayerPlugin.create(isBackground: true, showNotification: true); initVideo(); super.initState(); } @override void dispose() { player.dispose(); super.dispose(); } void initVideo() async { await player.initialize(); await player.setSource(song1); player.play(); } @override Widget build(BuildContext context) { return Column(children: [ VideoPlayerView(player), VideoProgressIndicator( player, allowScrubbing: true, padding: EdgeInsets.symmetric(vertical:5.0), ), SizedBox(height:20.0), buildButtons() ]); } Row buildButtons() { return Row( children: <Widget>[ FlatButton( child: Text("Prev"), onPressed: () { player.playPrev(); }, ), FlatButton( child: Text("Play"), onPressed: () { player.play(); }, ), FlatButton( child: Text("Pause"), onPressed: () { player.pause(); }, ), FlatButton( child: Text("Next"), onPressed: () { player.playNext(); }, ), ], ); } } ```
1
hakdogan/kafka-with-microservices
This repository is a tutorial for JUG Istanbul's Apache Kafka meetup that showing how Apache Kafka can be used in inter-microservices communication
jakartaee kafka kafka-consumer kafka-producer
# Communication Between Microservices with Apache Kafka ![Java CI with Maven](https://github.com/hakdogan/kafka-with-microservices/workflows/Java%20CI%20with%20Maven/badge.svg) This repository is a tutorial for `JUG Istanbul`'s `Apache Kafka` [meetup](https://www.meetup.com/Istanbul-Java-User-Group/events/272526880/) that showing how `Apache Kafka` can be used in inter-microservices communication. The example in this branch doesn't use `Kafka` and the value stream of the microservice architecture is shown below. ![](images/valueStreamWithoutKafka.png) Our goal is to achieve the following lean architecture by using `Kafka`. ![](images/valueStreamWithKafka.png) You can find the implementation of the above architecture at the [kafka](https://github.com/hakdogan/kafka-with-microservices/tree/kafka) branch.
1
camunda-community-hub/Camunda-7-Spring-Boot-Tutorial-Lafayette
This project is used as part of a video tutorial in order to show how you can use various features of Camunda in a spring boot application
camunda-7 spring-boot
# Camunda Platform 7 Spring Boot Tutorial Lafayette This project is used as part of a video tutorial in order to show how you can use various features of Camunda 7 in a spring boot application. Be aware that this is specific to Camunda 7 and concepts described here are not compatible with Camunda Platform 8. ![Video Tutorial Badge](https://img.shields.io/badge/Tutorial%20Reference%20Project-Tutorials%20for%20getting%20started%20with%20Camunda-%2338A3E1) <img src="https://img.shields.io/badge/Camunda%20DevRel%20Project-Created%20by%20the%20Camunda%20Developer%20Relations%20team-0Ba7B9"> ![Compatible with: Camunda Platform 7](https://img.shields.io/badge/Compatible%20with-Camunda%20Platform%207-26d07c) You'll find the tutorial videos by clicking the image below [![Camunda Spring Boot Tutorial](http://img.youtube.com/vi/WCznCZxHZ9k/0.jpg)](https://www.youtube.com/watch?v=sgcSm7YneTs&list=PLJG25HlmvsOVssaiPmavxv3htN_dXS3BW&index=1) ## What is this all about? When creating example projects I like to ensure that the examples I use are as close to real world use cases as possible and so in this example we'll be building a process in which we can help one of my favourite historical figures [Gilbert du Motier, Marquis de Lafayette](https://en.wikipedia.org/wiki/Gilbert_du_Motier,_Marquis_de_Lafayette) to do what he does best - get involved in revolutions! This is broken up into 4 parts and in the end we're looking a process that will help Lafayette with a more efficient way to ruin things for the French and British monarchy. ![process](./src/main/resources/images/laffProcessDiagram.png) ## What you will need * [Java JDK 11](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) so that you can run the Camunda Platform * [Camunda Modeler](https://camunda.com/download/modeler/) for building and deploying BPMN Models * An integrated development environment for Java like [IntelliJ IDEA](https://www.jetbrains.com/idea/download/) ## What will you learn? * How to setup a spring boot project with Camunda * Understanding the components of the project * How to create forms and link them to user tasks * How to write java classes that can be run by Service Tasks * How to configure an XOR gateway based on process data * How to configure non-interrupting timer events * How to trigger and catch BPMN errors thrown from Java Code ### Part One: Lafayette's Departure <span style="color:Orange">Using User tasks and Camunda Forms</span>. ![LafayetteV1](./src/main/resources/images/LafayetteV1.png) ### Part Two: Lafayette Crosses the Ocean <span style="color:Orange">Using Service Tasks, Java Classes and Gateways</span>. ![LafayetteV2](./src/main/resources/images/LafayetteV2.png) ## Part Three: Lafayette Writes Home <span style="color:Orange">Using Timers and User Tasks</span>. ![LafayetteV3](./src/main/resources/images/LafayetteV3.png) ## Part Four: Disaster at Sea for Lafayette <span style="color:Orange">Using Java to throw BPMN Error Events</span>. ![LafayetteV4](./src/main/resources/images/LafayetteV4.png)
1
Tutorials-By-Kaupenjoe/Minecraft-1.16.5
Repository for my 1.16.5 Minecraft Modding Tutorial Series. Different Videos will be in different branches. Master branch should always be the newest published video. Check out the playlist below.
java kaupenjoe minecraft-forge-mod minecraft-mod tutorial tutorial-code
null
1
hiimvikash/DSA-EndGame
I have started Data structures and Algorithms on April 1, 2021, and this repository will be containing my resources, tutorial, codes, and my approach to Qs, for future reference. As I'm in the learning process, this repository will be refreshed daily with my new bits of knowledge.
data-structures-and-algorithms dsa-end-game dsa-endgame dsa-for-free dsa-practice dsaendgame dsalgo-questions happy-learning-guys java problem-solving topic-wise-questions
# **DSA-EndGame 🔥** ## **Data Structures :-** ### **Data Structures is a way of storing/organising data in the memory, in such a way that access, management and modification become efficient.** ## **Algorithms :-** ### **Algorithms is any approach you use to perform operations on data (like searching, sorting, traversing, ..Etc.).** # **Let's Walk through this repository :- <img src="https://media.giphy.com/media/L0wRdjkIlMsF5SWaLQ/giphy.gif" width="60">** 1. ## [**Data Structures🧐**](./01.%20DataStructures) 1. ### [**LinkedList**](./01.%20DataStructures/01.%20LinkList) 1. #### [**Singly LinkedList**](./01.%20DataStructures/01.%20LinkList/1.%20Singly-LinkList) 1. #### [**Doubly LinkedList**](./01.%20DataStructures/01.%20LinkList/2.%20Doubly-LinkList) 1. #### [**Circular LinkedList**](./01.%20DataStructures/01.%20LinkList/3.%20Circular-LinkList) 1. ### [**Stack**](./01.%20DataStructures/02.%20Stack) 1. #### [**Stack Using Array**](./01.%20DataStructures/02.%20Stack/Basic%20Operation/1.%20Stack%20using%20Array) 1. #### [**Stack Using LinkedList**](./01.%20DataStructures/02.%20Stack/Basic%20Operation/2.%20Stack%20using%20LinkList) 1. #### [**Queue**](./01.%20DataStructures/03.%20Queue/Basic%20Operations) 1. #### [**Stack Using Queue**](./01.%20DataStructures/02.%20Stack/Basic%20Operation/3.%20Stack%20using%20Queue) 1. #### [**Problems on Infix Prefix Postfix**](./01.%20DataStructures/02.%20Stack/Infix%20Prefix%20Postfix) 1. ### [**Queue**](./01.%20DataStructures/03.%20Queue/Basic%20Operations) 1. #### [**Queue Using Array**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/01.%20Queue%20using%20array) 1. #### [**Queue Using LinkedList**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/02.%20Queue%20using%20linklist) 1. #### [**Queue Using Stack**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/03.%20Queue%20using%20stacks) 1. #### [**Circular Queue using array**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/04.%20Circular%20Queue%20using%20array) 1. #### [**Circular Queue using LinkedList**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/05.%20Circular%20Queue%20using%20linklist) 1. #### [**DeQueue using circular array**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/06.%20Dequeue%20using%20circular%20array) 1. #### [**Priority Queue**](./01.%20DataStructures/03.%20Queue/Basic%20Operations/07.%20Priority%20Queue) 1. ### [**Recursion**](./02.%20%20Algorithms/00.%20Recursions) 1. ### [**Tree DS**](./01.%20DataStructures/04.%20Tree%20DS) 1. #### [**Introduction to BinaryTree**](./01.%20DataStructures/04.%20Tree%20DS/01.%20Introduction%20to%20Binary%20Tree) 1. #### [**Binary Search Tree & Implementations**](./01.%20DataStructures/04.%20Tree%20DS/02.%20BinarySearchTree%20%26%20Implementations) 1. #### [**AVL Tree & Implementations**](./01.%20DataStructures/04.%20Tree%20DS/03.%20AVL%20Tree%20%26%20Implementations) 1. #### [**Trie DS & Implementations**](./01.%20DataStructures/04.%20Tree%20DS/04.%20Trie%20DS%20%26%20Implementations) 1. #### [**Heap DS & Implementations**](./01.%20DataStructures/04.%20Tree%20DS/05.%20Heap%20DS%20%26%20Implementations) 1. ### [**ArrayList (Comments are too good to understand the working)**](./01.%20DataStructures/05.%20ArrayList/ArrayListFun.java) 1. ### [**HashMap (Comments are too good to understand the working)**](./01.%20DataStructures/06.%20HashMap) 1. ### [**Graphs (Raw Notes®️)**](./01.%20DataStructures/07.%20Graphs/MyGraphy) 1. ## [**Algorithms🤯**](./02.%20%20Algorithms) 1. ### [**Arrays (45+ Questions including LoveBabar DSA sheet + Striver SDE sheet Qs)**](./02.%20%20Algorithms/01.%20Arrays) 1. ### [**Matrix (8 Questions)**](./02.%20%20Algorithms/02.%20Matrix) 1. ### [**Binary Search Busted (15+ Questions)**](./02.%20%20Algorithms/05.%20Binary%20Search%20Busted%20-%20AV) 1. ### [**Sliding Window Bombed💣 (15+ Questions)**](./02.%20%20Algorithms/04.%20Sliding%20Window%20-%20AV) 1. ### [**Searching & Sorting (30+ Questions)**](./02.%20%20Algorithms/07.%20Searching%20%26%20Sorting) 1. ### [**Recursions 25+ Questions Banged👅(Very Important before starting with Strings)**](./02.%20%20Algorithms/00.%20Recursions) 1. ### [**Dynamic Programming Busted😈(Very Important before starting with Strings)**](02.%20%20Algorithms/06.%20DP) 1. ### [**Now Strings (40+ Questions)**](./02.%20%20Algorithms/03.%20Strings) 1. ### [**LinkedList(30+ Questions including LoveBabar DSA sheet + Striver SDE sheet Qs)**](02.%20%20Algorithms/08.%20LinkedList) 1. ### [**Trees(50+ Questions)**](02.%20%20Algorithms/09.%20Trees) 1. ### [**Stack & Queue(40+ Questions)**](02.%20%20Algorithms/10.%20Stack%20%26%20Queue) 1. ### **Bit Manipulations(10+ Questions)** 1. ### **Heap(20 Questions)** 1. ### **Trie(6 Questions)** 1. ### **Graphs(40+ Questions)** 1. ### [**Dyanamic Programming(50+ Questions)**](02.%20%20Algorithms/06.%20DP/02.%20Qs) 1. ### [**Greedy Algorithm**](02.%20%20Algorithms/11.%20greedy%20algo) # **Some Common FAQs : <img src="https://media.giphy.com/media/l4FGwKLqbXxRtBzMc/giphy.gif?cid=ecf05e47zd17l7kzf15vqwyd0buahv05nz098szt4rh4tc75&rid=giphy.gif&ct=s" width="50">** # 1. **How to make maximum Output from DSA-EndGame🔥?** ### Follow the Walk strictly and fill up the holes with "Prerequisites" below, then you will feel the smooth knowledge geeting into and expanding your 🧠. # 2. **Why Have you not Started Data Structures with Arrays?** ### Array is a topic which has unlimited questions and I believe as a beginner if you start with array then geeting out of it is tough so I don't want you all to get stuck in array only till end and leave other data structures. ### I also believe that many of you are very well familiar with concept of array traversing, modifying and etc..so here we will solve only questions of arrays after completing full data structures. ### If you have no idea of Arrays then just understand few concept like :- Traversing in array, modifying array, reversing array and some basic questions of array from Hackerrank. # 3. **How to be consistent while completing DSA-EndGame?** ### Make a group of not more than 3 friends who are equally passionate like you to master DSA and start peer programming by making a single google sheet shared between your friends and update your daily work in sheet due to which you all will be able to see each others progress daily. # 4. **Why to prefer this repository over some paid courses which claim to be complete DSA course?** ### Except pepcoding resources I haven't found any course which would satisfy my heart, In every courses either there will be some topic missing or topic done with few questions only. ### So I tell you the best platform is Youtube. ### Now the problem arises with Youtube is best videos in each topics are scattered in all over different channels like DP is best explained by AdityaVerma, Stack & Queues are best explained by SimpleSnipets, Question solutions are best explained by Striver Bhaiya simillarly many topic have their own best channels. ### **So all you need is Guided path and Youtube videos link attached with each Questions and topics.** ### and your above need is fulfilled, has been tried to be fulfilled with DSA-EndGame🔥. ### **Thankyou.** # **Prerequisites :-** 0. **PROGRAMMING LANGUAGE.** https://user-images.githubusercontent.com/71629248/133892647-02fe4098-58fb-4e00-996c-78aa703fb28c.mp4 2. [**CLASS AND OBJECTS.**](https://youtu.be/a199KZGMNxk?t=244) 3. [**CONSTRUCTOR.**](https://youtu.be/a199KZGMNxk?t=981) 4. [**this KEYWORD.**](https://youtu.be/a199KZGMNxk?t=1424) 5. **ACCESS MODIFIERS IN JAVA.** - ## **Public-** The access level of public modifier is everywhere. Methods, variables declared public can be accesed from anywhere after importing that class. - ## **Default-** The access level of default modifier is within package. Methods, variables declared default can be accesed from other classes of same package. - ## **Private-** The access level of private modifier is within the class. Methods, variables declared private cannot be accesed from outside the class. 5. [**ENCAPSULATION.**](https://youtu.be/a199KZGMNxk?t=2019) 6. [**STATIC KEYWORD IN JAVA.**](https://youtu.be/3LtIk7wFGi0) 7. - **You can call static methods from non static method but reverse is not true.** 8. [**INNER CLASS IN JAVA.**](https://youtu.be/zg1pijw6AM4) 9. [**Pass by value.**](https://youtu.be/H71vRa86AGg) 10. [**Pass by refrence.**](https://youtu.be/q_q-6KuP91c) ```java import java.util.*; public class Hi { // here value is copied in localVariable 'a'. public static void incrementPrimitiveDT(int a) { a++; } // here reference is copied, means 'input' is also pointing to 'arr'. public static void incrementReferenceDT(int input[]) { for(int i=0;i<input.length;i++) { input[i]++; } } public static void main(String[] args) { int i=10; incrementPrimitiveDT(i); // passByValue System.out.println(i); // 10 int arr[]= {1,2,3,4,5}; incrementReferenceDT(arr); // passByReference System.out.println(Arrays.toString(arr)); // [2, 3, 4, 5, 6] } } ``` 11. [**Strings are immutable.**](https://youtu.be/4cEsJtuW4YY) 12. [**String Builder**](https://www.simplilearn.com/tutorials/java-tutorial/stringbuilder-in-java) 13. [**== & .equals in String.**](https://youtu.be/i7vYjvJOIiw) 14. [**Wrapper class in java.**](https://youtu.be/nYE_P9FG1g0) - ### Object creation and memory allocation in Integer class. ```JAVA public static void main(String[] args) { // case 1: Integer i= new Integer(1); Integer j=new Integer(1); System.out.println(i==j); // false, coz == check reference address of i and j, and here 'i' is pointing to 1 (i---> 1) and 'j' is pointing to different 1 (j---> 1) System.out.println(i.equals(j)); // true // case 2: Integer a=new Integer(2); Integer b=2; System.out.println(a==b); // false System.out.println(a.equals(b)); // true // case 3: Integer x=new Integer(3); Integer y=x; System.out.println(x==y); // true System.out.println(x.equals(y)); // true // case 4 Integer p=128; Integer q=128; System.out.println(p==q); // false System.out.println(p.equals(q)); // true // case 5 -128 to 127 is in cached memory so they point to same object without creating it instances. Integer s=50; Integer t=50; System.out.println(s==t); // true System.out.println(s.equals(t)); // true } ``` 15. [**Generics in Java.**](https://youtu.be/XMvznsY02Mk) 16. [**isequals and hashcode in java by codingSimplified.**](https://youtu.be/X2AjBFZfFCY) - [**isequals and hashcode in java by AnujBhaiya.**](https://youtu.be/HRHMkQ9fWsM) 17. **% operator in JAVA :** **dividend % divisor** - Here two statement is needed to be taken care :- - ## **When Divedend < Divisor then answer is dividend.** - ## **When Divedend > Divisor then answer lie in between [0 to divisor-1].** 18. **Store 2 numbers in a number. (true only in +ve scenerio)** - To Inject B in A we ADD(+) **B\*INF** in A and store it in A, where INF is any number greater than A and B. - to extract old number i.e., A from modified A we do (A % INF). - to extract new number(Injected number) i.e., B from modified A we do (A / INF). ```java int a=5; int b=4;// number to be injected int INF=9999; a=a+(b*INF); System.out.println(a%INF); // 5 System.out.println(a/INF); //4 ``` 19. **Comparator** : - ```Collections.sort(al,(a,b)-> scores[b]-scores[a]);``` - ```Arrays.sort(arr,(a,b)-> a.length()-b.length());``` - [Priority Queue](https://devwithus.com/java-priority-queue/#:~:text=What%20is%20Priority%20Queue%20in,represented%20by%20the%20PriorityQueue%20class.) ```java // this is a PQ of ARRAY of size 2 Comparator<int[]> ShortDisFromOrigin = (int p1[], int p2[]) -> ((p1[0]*p1[0]) + (p1[1]*p1[1])) - ((p2[0]*p2[0]) + (p2[1]*p2[1])); PriorityQueue<int[]> pq=new PriorityQueue<>(ShortDisFromOrigin); // OR PriorityQueue<int[]> pq=new PriorityQueue<>((int p1[], int p2[]) -> ((p1[0]*p1[0]) + (p1[1]*p1[1])) - ((p2[0]*p2[0]) + (p2[1]*p2[1]))); ``` ```java Arrays.sort(arr,(x,y)-> (x.c < y.c) ? 1 : -1); // 1 signifies swap -1 says no swap so this DEScending order ``` ## whenever u want to swap then pass 1 else -1 according to ur logic. [See this Q](02.%20%20Algorithms/11.%20greedy%20algo/09.%20Fractional%20Knapsack) ```java Arrays.sort(arr, new Comparator<Iteminfo>() { public int compare(Iteminfo o1, Iteminfo o2) { if(o2.c > o1.c) return 1; // that's why we write o2.c - o1.c if descending order return -1; } }); ``` 20. **HashMap Itterations** ```java // freq of words HashMap<String, Integer> hm=new HashMap<>(); for(String word : words) hm.put(word, hm.getOrDefault(word,0)+1); // adding entries in list for sorting List<Map.Entry<String, Integer>> l=new ArrayList<>(); for(Map.Entry<String, Integer> e : hm.entrySet()) l.add(e); // if u want key then write e.getKey() || e.getValue(); Collections.sort(l, (e1,e2)-> (e2.getValue()!=e1.getValue())?e2.getValue()-e1.getValue(): e1.getKey().compareTo(e2.getKey())); // conditional sorting // // itterating over keys for(String s : hm.keySet()) hm.get(s); ``` 21. - Character to Integer ```java char ch = '2'; int a = ch - '0'; // 2 ``` - Integer to Character ```java int a=65; char ch=(char)a; // A ``` - String to Integer ```java int i=Integer.parseInt("0100"); // 100 String s="200"; int i=Integer.valueOf(s); ``` - Integer to String ```java String.valueOf(20); ``` - If you want to acces array for each character then how to get Index ? ```java for(char c = 'a'; c<='z'; c++){ arr[c-'a']; } ``` - StringBuilder to String ```java return sb.toString(); return sb.substring(0, sb.length() - 1); // except last ``` - ```Char[] to String``` ```java return new String(ch); return String.valueOf(ch); ``` <hr> <hr> ## 1. Memory Allocation when you initialize a variable. ![kunalKushwaha1 1](https://user-images.githubusercontent.com/71629248/128210358-dff0df32-a25b-4c84-9bfb-9d9161127aca.png) - **Note :** When there is no reference variable pointing to actual object then it is deleted automatically when garbage collection hits. ## 2. Objects & Reference Variable. ![kunalKushwaha1 0](https://user-images.githubusercontent.com/71629248/128210454-7d5523f3-3f0d-4046-9511-b222ffd8f17d.png) ```java public class Demo{ public static void main(String[] args) { Human obj=new Human(); Human son=obj; // this is his mom who call obj as hisSon. Human bro=obj; // this is his sis who call obj as hisBro. son.hairCut="done"; // here his mom made him do haircut. // here his sister is also able to see his haircut. System.out.println(bro.hairCut); // done } } class Human{ String name="Vikash"; String hairCut="notDone"; } ```
0
awslabs/aws-codepipeline-plugin-for-jenkins
Use this plugin to integrate your Jenkins project with a pipeline in AWS CodePipeline. For more information and step-by-step directions on how to install and configure this plugin, follow the Four Stage Pipeline Tutorial. http://docs.aws.amazon.com/codepipeline/latest/userguide/getting-started-4.html
null
# AWS CodePipeline Jenkins Plugin The AWS CodePipeline plugin for Jenkins provides a pre-build SCM and a post-build (publisher) step for your Jenkins project. It will poll for AWS CodePipeline jobs, and download input artifacts. When a build succeeds, it will compress the build artifacts and upload them to AWS CodePipeline. [![Build Status](https://ci.jenkins.io/buildStatus/icon?job=Plugins/aws-codepipeline-plugin/master)](https://ci.jenkins.io/job/Plugins/job/aws-codepipeline-plugin/job/master/) [![Changelog](https://img.shields.io/github/release/awslabs/aws-codepipeline-plugin-for-jenkins.svg?label=changelog)](https://github.com/awslabs/aws-codepipeline-plugin-for-jenkins/releases/latest) [![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/aws-codepipeline.svg)](https://plugins.jenkins.io/aws-codepipeline-plugin) ## Set up Configure a build server running Jenkins. For your build server, it is recommended to create an Amazon EC2 instance running Jenkins. Note: As a best practice, configure an EC2 instance profile rather than using AWS access and secret keys for your server applications. For more information, see [https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-four-stage-pipeline.html#tutorials-four-stage-pipeline-prerequisites-jenkins-iam-role](https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-four-stage-pipeline.html#tutorials-four-stage-pipeline-prerequisites-jenkins-iam-role). ### Configure build project 1. Install the `AWS CodePipeline` plugin. 2. Open your project configuration, or create a new project. 3. In the `Source Code Management` section, select **AWS CodePipeline**. * Fill out the required fields. 4. In the `Build Trigger` section, select **Poll SCM**. * Define a schedule using cron syntax. 5. Configure your build step as you normally would. 6. In the `Post-build Actions` section, add **AWS CodePipeline Publisher**. * Configure any output artifacts (see below). ### AWS CodePipeline Publisher The publisher can upload zero to five output artifacts. If you don't need to upload output artifacts, don't add any output locations (but do add **AWS CodePipeline Publisher** as a Post-build action). To upload output artifacts, add an output location per artifact: * If the location is blank: the whole workspace will be compressed, and uploaded. * If the location is a directory: the directory will be compressed, and uploaded. * If the location is a normal file: the file will be uploaded as-is (no compression). #### Archive format For blank (workspace) or directory output locations, the plugin will use the same archive format used by the input artifacts. If the input archive type could not be determined, it will default to ZIP. Supported archive formats: * zip * tar * tar.gz ## License This plugin is open sourced and licensed under Apache 2.0. See the LICENSE file for more information.
0
smartherd/RecyclerViewCardView
A demo on Recycler View and Card View. Also this project has implementation of Recycler List View, Staggered List View, Grid View in Horizontal as well as Vertical Modes. Step by Step tutorial of this demo can be found at www.youtube.com/smartherd/playlists
null
null
1
yrojha4ever/JavaStud
Official, Main: This is Core/Advance java example series project. It help to learn java step by step using pdf tutorial provided here and corresponding demo project for the eclipse. Tag: Java Student, Java Stud, Stud Java, StudJava, Java Teachers, Studs Quick Start Guide, Studs Java, Object Oriented Programming, Core Java, Java SE, Java EE, Java Enterprise Edition, Java Blog, Java Articles, Java Web, JSP, Servlet, Maven, Spring, Hibernate, Spring-boot, Spring MVC Web, Angular JS, Angular 2, Java Security, Java CRUD, Java Login Example, File Handling, Multi threading, exception handling, Collection classes, Swing, Database, Date Time, Joda Time, JPA.
angular angularjs corejava hibernate java java-enterprise-edition java-guru java-students java-tutorial java-tutorials jsp maven object-oriented-programming servlet spring spring-boot stud-java stud-projects student swing
# JavaStud This is java tutorial example series. Visit http://yro-tech.blogspot.com/ blog for more resources. [1.Introduction:](https://drive.google.com/open?id=0B3_WIs_SGCRzbDdKbTVoZHZUMGs)<br/> [2.OOP:](https://drive.google.com/open?id=0B3_WIs_SGCRzZHk2MmNsVkxqa1U)<br/> [3.Exception Handling,Inner Class, Date Time, Joda time, Reflection:](https://drive.google.com/open?id=0B3_WIs_SGCRzdkk1WGpGSGxMdU0)<br/> [4.Multithreading, IO, Serialization:](https://drive.google.com/open?id=0B3_WIs_SGCRzTl9GbFZSdmZabE0)<br/> [5.Collections, Java Generics:](https://drive.google.com/open?id=0B3_WIs_SGCRzVDg0MV9qQmVjajQ)<br/> [6. JDBC ](https://drive.google.com/open?id=0B3_WIs_SGCRzU1Z2NUhaSkdXUE0)<br/> [7. Swing ](https://drive.google.com/open?id=0B3_WIs_SGCRzRFVEdzV3ekNNMWM) &nbsp;&nbsp;&nbsp;[(Project here..)](https://github.com/yrojha4ever/StudManagProj)<br/> [8. Java EE/Servlet](https://drive.google.com/open?id=0B3_WIs_SGCRzcG1rQVRabTJSVG8) &nbsp;&nbsp;/&nbsp; [JSP](https://drive.google.com/open?id=0B3_WIs_SGCRzRnIySktZZTlsT2M) &nbsp;&nbsp;:wavy_dash:[Web Project(Jsp/Servlet)](https://github.com/yrojha4ever/JavaStudWeb)<br/> [10. Maven ](https://drive.google.com/open?id=0B3_WIs_SGCRzaHpnR0VvdkNlVWc)<br/> [11. Hibernate ](https://drive.google.com/open?id=0B3_WIs_SGCRzRnlsYkhLTW1QTlk) &nbsp;&nbsp;&nbsp;[(Hibernate Project Here...)](https://github.com/yrojha4ever/JavaStudHibernate)<br/> [11. Spring AOP `Dependency Injection` Project..](https://github.com/yrojha4ever/JavaStudSpringDI)<br/> [12. Spring Web:](https://drive.google.com/open?id=0B3_WIs_SGCRzMExNRlFJN24yT3c) &nbsp;&nbsp;&nbsp;[(Spring Web Mvc/Hibernate Project...)](https://github.com/yrojha4ever/JavaStudSpringMVCWeb) &nbsp;&nbsp;&nbsp;Spring boot version: [springmvcweb-boot](https://github.com/yrojha4ever/springmvcweb-boot)<br/> ### Some Extra course along with Spring MVC WEB! 12.1 [Angular JS APP](https://github.com/yrojha4ever/angularapp)<br/> 12.2 [Design Pattern] ``` Factory Pattern Singleton Pattern MVC Pattern Builder Pattern Decorator Pattern ``` 12.3 [Java - 8] ``` Lambda Expressions Default methods Functional interfaces Streams Filters Date-Time Package ``` 12.4 [JUnit] ``` Assertions assertThat Execution order @Test @BeforeClass @AfterClass @Before @After ``` ## :coffee: NEXT :fast_forward: [Industrial Java Development With Advance Web(Training)](IndustrialJava.MD) :coffee: ## If this repository helps you in anyway, show your love :heart: by putting a :star: on this project :v: ``` --------------------------------------------- Assignment 1: http://www.ctae.ac.in/images/editorFiles/file/Lab%20Solutions%20of%20CSE_IT/java.pdf 1. Write a program to find sum and average of N number using command line argument. 2. Write a program to find sum and average of N number input by User(using Scanner class). 3. Write a program to Demonstrate type casting of all type of data type in java. 4. Write a program to Demonstrate boxing/un-boxing of all types of data type in java. 5. Write a program to test prime number. 6. Write a program to calculate Simple Interest input by user. Simple Intrest = P*T*R/100 7. Write a program to display following string in the console: <!DOCTYPE html> <html lang="en-US"> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> <body> <div ng-app=""> <p>Name : <input type="text" ng-model="name"></p> <h1>Hello '{{name}}'</h1> </div> </body> </html> --------------------------------------------- ``` ``` Assignment 2: Src: http://www.scribd.com/doc/68627280/Java-Lab-Test-Final-Questions#scribd 1.Write a program with different methods to convert Fahrenheit to Celsius andCelsius to Fahrenheit. 2.Write a program to take input from the user and calculate sales-tax. 3.Write a program to take input from the user and calculate interest rate (10%) for giving loan. 4.Write a program that reads in the radius and length of a cylinder and computesvolume. 5.Write a program that converts pounds into kg. The program prompts the user toenter a number of pounds, converts it to kg and displays the result [ 1 pound is0.454 kg]. 6.Write a program that reads an integer 0 to 1000 and adds all the digits in integer.[For example: 911 (input) -> 11 (result)]. 7.Write a program that converts lowercase letter to uppercase letter. [hint: int offset= ‘a’ – ‘A’; char uppercase = (char) (lowercase-offse) ] 8.Write a program that receives an ASCII code (int between 0 – 128) and display itscharacter [example : 97 (input) -> A(output)]. 9.Write a program that reads following information -> Employee’s name, number of hours worked in week, hourly pay rate, tax (20%) with-holding from user and prints a payroll statement with employee’s details. 10.Write a program that reads in investment amount, annual interest rate and number of years. Display the future investment value of the person. 11.Write a program that calculates the energy needed to heat water from an initialtemperature to final temperature. Your program should prompt the user to enter the amount of water in kg and initial and final temperature of water. 12.Write a program that displays the following table (5 IN ROW): a b pow(a,b) a b pow(a,b) --------------------------------------------------------------- 1 2 1 6 7 ______ 2 3 8 7 8 ______ 3 4 81 8 9 ______ 4 5 9 10 ______ 5 6 10 11 ______ 13.Write a program to calculate leap year. 14.Write a program that reads an integer and checks whether it is even, odd or primenumber, print the same as output. 15.Write a program which sorts given numbers, which is provided by user. 16.Write a program to display multiplication table for the given number by user. 17.Write a program to calculate GCD and LCM of the given input from user indifferent methods. 18.Write a program that prompts the user to enter the number of students and eachstudent’s name and score. Finally display the student with highest score. 19.Write a program that displays all number from 100 to 1000, ten per line that aredivisible by 5 and 6. 20.Use a while loop to find the smallest integer ‘n’ such that n square (n2) is greater than 12000. 21.Write a program that display all leap years, ten per line, in the twenty first centure(2001 to 2100). 22.Write a program that prompts the user to enter a decimal integer and display itscorresponding binary value. Use built-in class and without built-in class. 23.Write a program to display an integer in reverse order [ example : 1345 (input) ->5431 (output)]. 24.Write a program that prompts the user to enter a decimal integer and display itscorresponding hexadecimal value. 25.Write a program to find if the given input is palindrome or not. Also includedifferent method to see if number is prime or not. 26.Write a program which reads the score, then finds best score and finally assignsgrades to the students and prints the students details in order. (use array) 27. Write a program to count number letters in given array, with built-in function andwithout built-in functions. 28.Write a program which prompts for set of elements and search given key element. 29.Write a program to sort given array elements using insertion sort. 30.Write a program that reads eleven number from user, computes their average, andfinds out how many numbers are below average and displays duplicate numbers. 31.Write two overloaded methods that return the average of an array with followingheaders: public static int averate(int[] array); and public static doubleaverage(double[] array). 32.Write a program which reads two matrices (2 D) and adds two matrices anddisplays the output on screen. 33.Write a program with different methods to do these array operations -> sort anarray and search an element inside it, determine the upper bound of 2D array. 34.Write a program with different methods to do these array operations -> sort anarray and insert an element inside it, determine the upper bound of 2D array. 35.Write a program with different methods to do these array operations -> reverse anarray, search mini and the maxi element in an array. 36.Write a program with different methods to do these array operations -> comparetwo arrays and display if it is equal or not. 37.Write a program to use methods for calculating Fibonacci series using recursion. 38.Write a program to use recursion for calculating factorial of a number. 39.Write a program to demonstrate various arithmetic and assignment operations,right shift and left shift. 40.Write a program to accept string in command line and print the same, also counthow many characters are in the given string. 41.Write a program to demonstrate various relational and logical operations. 42.Write a program using different methods to demonstrate conditional operator anddo type conversions from -> double to float, short to int, double to int, chat to int,int to short. 43.Write a program using different methods with different control flow controls (for,switch, while) to check whether an alphabet is a vowel or not. 44. Write an exception which catches if the value is very small(eg:<.01) 45. WAP which catches different exceptions 1.divide by 0, 2.Array boundindex error 3.Wrong datatype. 46. WAP to catch wrong input frm command line argument. 47. A simple applet to display a msg:HELLO WORLD on applet window. 48. Do d above pgm by passing parameters and align d msg. 49. Your own exception -> if number is two small, (declare variables as float, do anyarithmetic operationsif the output is less than 0.01 then call and exception). 50. Write a java program which catches exception for divide by zero and array indexerror and wrong data type. 51. Write a java program to catch wrong input from command line, ( declare int variable but input of different type). 52. Display "Hello World " on applet window53. Pass parameters and display string on applet screen. 54.Align the output "Helloworld" to rightmost corner, below, middle, leftmost corner,anywhere on the applet screen. 55. Write a program to calculate the value of X= sin x+cosx+tanx using multiple threads. 56. Define a thread using thread class to generate the factorials of first 20 naturalnumbers. create an instance for this thread and then activate it. 57. Write a program to generate the square roots of the first 30 natural numbers usingRunnable Interface. 58. Define a thread to display the odd numbered element in an array of size 50.define another thread to display even numbered element in another array of size 50.Create instances of the above threads and run them. 59. Write a program that executes three threads. first thread displays Good morning everyone second.second thread displays hello every two seconds and the third thread displays welcome inevery three seconds.create the three threads by extending the thread class. ``` ### Java soft installation ``` 32 bit/64 bit: 1. Install JDK 1.8 2. Install 7zip software 3. spring-tool-suite: >create C:\java-ws folder > copy zip file "spring-tool-suite-3.8.1" into C:\java-ws folder > extract it there using 7zip To run spring-tool-suite: > go to sts-bundle>sts-3.8.1.RELEASE>STS.exe > it will promt select workspace dialog? #give path of your workspace: C:\java-ws #tick checkbox (default) #OK ``` ### Install Maven in Mac/Linux: `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` Alternatively, I recommend installing Homebrew for these kinds of utilities. Then you just install Maven using: `brew install maven` <br/> PS: If you got a 404 error, try doing a brew update just before *Install Maven in Linux Ubuntu:* `sudo apt-get install maven` ### How to install lombok in mac: ``` Rename the file "STS.EXE" to "sts.exe" under ../sts-bundle/sts.app/Contents/MacOS/. And then run java -jar lomobok.jar and select the STS.ini file under ../sts-bundle/sts.app/Contents/Eclipse ``` [Assignments: ] (https://github.com/yrojha4ever/JavaStud/blob/master/Assignments.MD) <br/> Some good Links: <br/> [Designing Patterens for Human] (https://github.com/kamranahmedse/design-patterns-for-humans) [Java Exercism] (http://exercism.io/languages/java/about) [How to Conduct Good Programming Interview] (http://www.lihaoyi.com/post/HowtoconductagoodProgrammingInterview.html)
1
Hakky54/mutual-tls-ssl
🔐 Tutorial of setting up Security for your API with one way authentication with TLS/SSL and mutual authentication for a java based web server and a client with both Spring Boot. Different clients are provided such as Apache HttpClient, OkHttp, Spring RestTemplate, Spring WebFlux WebClient Jetty and Netty, the old and the new JDK HttpClient, the old and the new Jersey Client, Google HttpClient, Unirest, Retrofit, Feign, Methanol, vertx, Scala client Finagle, Featherbed, Dispatch Reboot, AsyncHttpClient, Sttp, Akka, Requests Scala, Http4s Blaze, Kotlin client Fuel, http4k, Kohttp and ktor. Also other server examples are available such as jersey with grizzly. Also gRPC, WebSocket and ElasticSearch examples are included
certificate certificate-authority certificate-signing-request encryption https java keystore keytool kotlin mutual-authentication mutual-tls openssl scala security server spring-boot ssl tls truststore two-way-ssl-authentication
null
1
jiangnanboy/spark_data_mining
spark tutorial for big data mining。包括app流量运营分析、als推荐、smote样本采样、RFM客户价值分群、AHP层次分析客户价值得分、手机定位数据商圈挖掘、马尔可夫智能邮件预测、时序预测、关联规则、推荐电影好友等。
ahp app-traffic-operation-analysis big-data-mining markov rfm smote spark time-series
This repository provides tutorial code for big data mining to learn [spark](https://github.com/apache/spark). 本库利用java spark实现的数据挖掘项目,包括一些数据的常规分析与挖掘,也包括了一些机器学习算法。这些项目都可以直接运行在所指定的数据集上。未来如果看到有好的数据挖掘项目或者有自己不错的想法都会随时更新实现。 <br/> ##Contents #### 1. basics * [TrafficOperationAnalysis淘宝APP一个月数据的流量运营分析](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/TrafficOperationAnalysis.java) * [AssociationRules关联规则](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/AssociationRules.java) * [FindCommonFriends共同好友](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/FindCommonFriends.java) * [FriendRecom推荐朋友](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/FriendRecom.java) * [ItermCFMovieRecom推荐电影](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/ItermCFMovieRecom.java) * [KNN最近邻](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/KNN.java) * [NB贝叶斯](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/basics/NB.java) #### 2. intermediate * [ALS股票组合推荐](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/StockRec.java) * [Markov马尔可夫智能邮件预测](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/smartemail) * [SparkSmote样本采样](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/SparkSmote.java) * [RFM客户价值分群挖掘](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/customervalue) * [手机基站定位数据的商圈分析](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/BusinessCircle.java) * [AHP层次分析顾客价值得分](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/AHP.java) * [RF用户流失预测](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/intermediate/CustomerChurnAnalysis.java) #### 3.advanced * [时间序列预测(商品销量预测)](https://github.com/jiangnanboy/spark_tutorial/blob/master/src/main/java/com/sy/dataalgorithms/advanced/time_series) #### requirements * [java1.8] * [spark3.0] * [python3.6] * [pandas1.1.4] * [numpy1.18.5] * [lightgbm2.3.x] #### references * [data algorithms](https://github.com/mahmoudparsian/data-algorithms-book) * [spark](https://github.com/apache/spark/tree/master/examples/src/main/java/org/apache/spark/examples) * [spark_smote](https://github.com/jiangnanboy/spark-smote) * [LearningApacheSpark](https://github.com/runawayhorse001/LearningApacheSpark) #### contact 如有搜索、推荐、nlp以及大数据挖掘等问题或合作,可联系我: 1、我的github项目介绍:https://github.com/jiangnanboy 2、我的博客园技术博客:https://www.cnblogs.com/little-horse/ 3、我的QQ号:2229029156
1