What do you want to save?
Add Code snippet
New code examples
-
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 -
Java 2022-01-22 10:21:17
Java convert octal to decimal
import java.util.Scanner; public class OctalToBinaryJava { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please enter octal number: "); int octal = Integer.parseInt(sc.n... Add solution -
Java 2021-11-21 21:21:15
how to convert string to space separated int in java
resetting temp to empty string after you parse it to create place for new digits. that at the end of your string will be no space, so if (numbers.charAt(i) == ' ') { ary[j] = Integer.parseInt(temp); j++; } will not be invoked, which means you need invoke ... Add solution -
Java 2021-11-19 03:09:09
java escribir ventana grafica
cadena = JOptionPane.showInputDialog("Digite una cadena: "); entero = Integer.parseInt(JOptionPane.showInputDialog("Escriba un numero")); letra = JOptionPane.showInputDialog("Escribe una letra").charAt(0); Add solution