What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-02 09:26:02
amstrong
//Java program to check whether a number is armstrong or notimport java.util.Scanner;public class armstrong_number_or_not{ public static void main(String[] args) { //scanner class declaration Scanner sc = new Scanner(System.in); //input from user Syst... Add solution -
Other 2021-10-02 04:54:04
Cross Browser and Parallel Test
I achieve it with xml file. In TestNG is quite simple to do parallel testing. . First I create TestNG xml runner. Then I create suites or test tags in the xml runner. In these tag, I point to package or class I want to run. Then I add and option like par... Add solution -
Other 2021-10-02 02:22:03
how to run multi browser testing in testng
I achieve it with xml file. In TestNG is quite simple to do parallel testing. . First I create TestNG xml runner. Then I create suites or test tags in the xml runner. In these tag, I point to package or class I want to run. Then I add and option like par... Add solution -
Java 2021-10-01 20:34:07
Java program to check palindrome string using recursion
import java.util.Scanner; public class RecursivePalindromeJava { // to check if string is palindrome using recursion public static boolean checkPalindrome(String str) { if(str.length() == 0 || str.length() == 1) return true; ... Add solution -
Java 2021-10-01 15:08:09
String palindrome in java using stringbuffer
// String palindrome in java using stringbuffer public class PalindromeUsingStringBuffer { public static void main(String[] args) { String strInput = "nayan"; StringBuffer sb = new StringBuffer(strInput); sb.reverse(); ... Add solution -
Java 2021-10-01 11:20:02
Multiple representations of the same entity are being merged
The correct solution would have been to upgrade to hibernate 4.2.15 / 4.3.6 or above and add the following lines to your persistence.xml: <property name="hibernate.event.merge.entity_copy_observer" value="allow"/> multiple repr... Add solution -
PHP 2021-10-01 03:18:07
Python
Python is a high-level programming language designed to be easy to read and simple to implement. It is open source, which means it is free to use, even for commercial applications. Python can run on Mac, Windows, and Unix systems and has also been ported ... Add solution -
Other 2021-09-30 21:09:03
remove loop from linked list
//java Node remove(Node head){ //detect the loop Node slow=head; Node fast=head; while(slow!=null&&fast!=null&&fast.next!=null){ slow=slow.next; fast=fast.next.next; if(slow==fast){ if(slow==head){ while(slow.next!=head){ slow=slow.next;... Add solution -
Java 2021-09-30 17:42:03
pojo class
It stands for Plain old Java Object and basically we use it when we need to represent some data as Java object. So to that we need to create a Java class to represent it's data. For example: { "name" : "ABC", "gender : "... Add solution
Best helpers
Ranking is empty