What do you want to save?
Add Code snippet
New code examples
-
Java 2021-11-02 10:48:16
how to open a webpage with java
/** * author Scratchy (Twitter @S_cratchy) * Just import stuff */ import java.awt.Desktop; import java.io.IOException; import java.net.URI; import java.util.logging.Level; import java.util.logging.Logger; /** This you put in your button or whatever ... Add solution -
Java 2021-10-29 04:48:15
jackson object to json
ObjectMapper objectMapper = new ObjectMapper(); String carJson = "{ \"brand\" : \"Mercedes\", \"doors\" : 5 }"; try { Car car = objectMapper.readValue(carJson, Car.class); System.out.println("car... Add solution -
Java 2021-10-28 13:37:09
Transpose of a matrix in java using BufferedReader
// Transpose of a matrix in java using BufferedReader import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class TransposeMatrixDemo { public static void main(String[] args) throws IOException { ... Add solution -
Java 2021-10-28 03:54:13
how to convert an image to matrix in java
import java.awt.Color; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ImageUtil { public static Color[][] loadPixelsFromFile(File file) throws IOException { B... Add solution -
Java 2021-10-27 12:43:05
java file sorting using date or time
public class ExampleSortFilesByDate { public static void main(String[] args) { File dir = new File("d:\\test"); File[] files = dir.listFiles(); System.out.println("-- printing files before sort --"); printFile... Add solution -
Java 2021-10-27 06:57:10
set skin minecraft entity player
public static boolean setSkin(GameProfile profile, UUID uuid) { try { HttpsURLConnection connection = (HttpsURLConnection) new URL(String.format("https://sessionserver.mojang.com/session/minecraft/profile/%s?unsigned=false", UUIDType... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5