What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-07 06:10:01
add second to date java
/* w w w . j a va 2s . c om*/ import java.util.Calendar; import java.util.Date; public class Main { public static void main(String[] args) { System.out.println(addSeconds(new Date(), 100)); } public static Date addSeconds(Date date, In... Add solution -
Javascript 2022-03-06 18:40:21
connecting to the database
I USE JDCB I use CONNECTION database to make connection I create STATEMENT than I use statement to create query And run the query and get the RESULT SET Connection = import java.sql.Connection; Driver manager = import java.sql.DriverManager; Connection... Add solution -
Other 2022-03-06 08:10:34
allof method hamcrest
allOf method --> it is similar to "AND" = "&&" in Java. Basically both condition must be true in order test to pass For example : assertThat("John Doe", allOf(startsWith("Jo"),containsString("Doe&q... Add solution -
Java 2022-03-03 18:00:14
how to create a draw Rectangle in java
import javax.swing.JFrame; import java.awt.Rectangle; import javax.swing.JComponent; import java.awt.Graphics2D; import java.awt.Graphics; import java.awt.Color; public class ChrismasTree { public static void main(String[] args) { JFrame wind... Add solution -
Java 2022-03-02 23:20:19
identifier in java
Identifiers are names in java program. Identifiers can be class name, method name or variable name. Rules for defining identifiers in java: 1) Identifiers must start with letter, Underscore or dollar($) sign. 2) Identifiers can’t start with numb... Add solution -
Java 2022-03-02 20:05:28
Java program find GCD and LCM of two numbers using euclid’s algorithm
import java.util.Scanner; public class GCDLCMEuclid { // gcd java void findGCD(long num1, long num2) { while(num2 > 0) { long temp = num2; num2 = num1 % num2; num1 = temp; } System.out.printl... Add solution
Best helpers
User 768576
+10
Viki
+5
Riptiki
+5
Suraj tiwari
+5
Bmcl
+5
Nuno
+5
AllenG
+5
Hugh Zang
+5
Marcel Souza
+5
Rosey28
+5