What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-23 03:40:20
how to display an array in one message dialog
public static void printArray(double[] array) { StringBuilder builder = new StringBuilder(); for (int a = 0; a < array.length; a++) { builder.append(array[a]).append(" "); } JOptionPane.showMessageDialog(null, builder.... Add solution -
Java 2022-02-22 20:10:19
Multiply two numbers without using arithmetic operators in java
import java.util.Scanner; public class MultiplyWithoutArithmeticOperators { static int multiplyNumber(int num1, int num2) { int output = 0; boolean boolNegative = (num1 < 0 && num2 >= 0) || (num2 < 0 && num1 >... Add solution -
C++ 2022-02-02 23:00:41
gcd of two numbers c++
// gcd function definition below: int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int a = 105, b = 30; cout<<"GCD of "<< a <<" and "<< b <<&quo... Add solution
Best helpers
Ranking is empty