- Open Android Studio
- Go to: Tools > Create Command-line Launcher
- Leave as default, Press OK
- Add the following lines to your
.gitconfig
| import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.Job | |
| import kotlinx.coroutines.delay | |
| import kotlinx.coroutines.launch | |
| /* | |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled |
| /** | |
| Use Proguard | |
| Video section: https://youtu.be/AdfKNgyT438?list=PLWz5rJ2EKKc-odHd6XEaf7ykfsosYyCKp&t=413 | |
| **/ | |
| android { | |
| buildTypes { | |
| release { | |
| minifyEnabled true | |
| } | |
| } |
| public class HashTable { | |
| private static int INITIAL_SIZE = 16; | |
| private HashEntry[] entries = new HashEntry[INITIAL_SIZE]; | |
| public void put(String key, String value) { | |
| int hash = getHash(key); | |
| final HashEntry hashEntry = new HashEntry(key, value); | |
| if(entries[hash] == null) { | |
| entries[hash] = hashEntry; | |
| } | |
| // If there is already an entry at current hash |