What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-01 20:51:14
filters in xml
package demotest; import java.io.IOException;import java.util.Date; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; imp... Add solution -
Assembly 2022-02-01 03:06:44
javafx fxml loader example
@Override public void start(Stage stage) throws IOException { // set up the scene FXMLLoader loader = new FXMLLoader(getClass().getResource("/orbit_the_camera_around_an_object/main.fxml")); Parent root = loader.load(); controller = load... Add solution -
Java 2022-01-31 01:31:41
otp verification in spring boot
//Your authentication key String authkey = "YourAuthKey"; //Mobile number to which OTP needs to be sent String mobiles = "+91XXXXXXXXXX"; //Your otp value to be sent. String otpValue = "12345"; URLConnection myURLCo... Add solution -
Java 2022-01-30 23:12:14
Send a custom plugin message to said server
// Sending ByteArrayDataOutput out = ByteStreams.newDataOutput(); out.writeUTF("Forward"); // So BungeeCord knows to forward it out.writeUTF(recipientServerName); out.writeUTF(channelName); // The channel name to check if this your data ByteAr... Add solution -
Java 2022-01-29 21:40:54
Java create new file
import java.io.FileWriter; // Import the FileWriter class import java.io.IOException; // Import the IOException class to handle errors public class WriteToFile { public static void main(String[] args) { try { FileWriter myWriter = new File... Add solution -
Other 2022-01-28 20:45:58
checked vs unchecked exceptions
1) All the subclasses of Throwable class except error,Runtime Exception and its subclasses are checked exceptions. 2) Checked exception should be thrown with keyword throws or should be provided try catch block, else the program would not compile. We do... Add solution -
Java 2022-01-27 21:15:33
how to read from json files in java
package com.howtodoinjava.demo.jsonsimple; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONPa... Add solution -
Java 2022-01-27 19:11:47
java fast input
// this program gives you fast input, especially for competitive programming import java.util.*; import java.io.*; public class PutYourClassNameHere { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringTokeniz... Add solution -
Javascript 2022-01-27 01:16:08
swap nodes algo hackerrank solution
import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.regex.*; public class Solution { /* * Complete the swapNodes function below. */ static class Node { int index; int depth; ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5