This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.phucynwa.libs | |
import io.ktor.events.EventDefinition | |
import io.ktor.server.application.* | |
import io.ktor.util.* | |
import org.koin.core.KoinApplication | |
import org.koin.core.context.startKoin | |
import org.koin.core.context.stopKoin | |
import org.koin.core.parameter.ParametersDefinition | |
import org.koin.core.qualifier.Qualifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.annotation.SuppressLint | |
import android.app.Application | |
import android.content.Context | |
import android.net.ConnectivityManager | |
import android.net.Network | |
import android.net.NetworkCapabilities | |
import android.net.NetworkRequest | |
import android.os.Build.VERSION | |
import android.os.Build.VERSION_CODES.* | |
import androidx.annotation.RequiresApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test{ | |
public static void main(String[] args){ | |
String name = null; | |
System.out.println("Length of name is "+ name.length()); // Error. Null Pointer Exception because name is null | |
} | |
} |