What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-15 19:57:02
.net core executenonqueryasync Oracle transaction
public void RunOracleTransaction(string connectionString) { using (OracleConnection connection = new OracleConnection(connectionString)) { connection.Open(); OracleCommand command = connection.CreateCommand(); OracleTransa... Add solution -
Java 2021-09-14 16:53:03
Share application “link” in Android
try { Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("text/plain"); shareIntent.putExtra(Intent.EXTRA_SUBJECT, "My application name"); String shareMessage= "\nLet me recommend you this ... Add solution -
Java 2021-09-14 11:47:02
how to add a new row of data in excel using java
package net.codejava.excel; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.EncryptedDocumentException; import org.apache.poi.openxml4j.exceptions.Invali... Add solution -
Other 2021-09-14 00:49:02
how to create keyManaget[] for ssl context for https restapi
public class MyCustomClientHttpRequestFactory extends SimpleClientHttpRequestFactory { @Override protected void prepareConnection(HttpURLConnection connection, String httpMethod) { try { if (!(connection instanceof HttpsURLConnection)) { ... Add solution -
Other 2021-09-13 05:30:02
Can we catch more than one exception in single catch block
From Java 7, we can catch more than one exception with single catch block. This type of handling reduces the code duplication. When we catch more than one exception in single catch block , catch parameter is implicity final. We cannot assign any value ... Add solution