What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-29 20:49:02
Reverse a string in java word by word
// Reverse a string in java word by word import java.util.Scanner; public class ReverseStringWordByWord { public static void main(String[] args) { String strWord = ""; Scanner sc = new Scanner(System.in); System.out.pri... Add solution -
Java 2021-09-28 21:48:01
Java program to convert integer value into binary
import java.util.*; import java.util.Scanner; public class IntegerToBinary { public static void main(String[] args) { int num; String str = ""; Scanner sc = new Scanner(System.in); System.out.println("Please en... Add solution -
Java 2021-09-17 02:37:02
java solution milk the cow
import java.util.*; import java.io.*; /* ID: coconut LANG: JAVA TASK: milk2 */ public class milk2 { static farmer[] farmers; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(new File("milk2.in")... Add solution -
Java 2021-09-16 03:06:02
Java program to insert an element at specific position in an array
import java.util.Scanner; public class InsertElement { public static void main(String[] args) { int number, position, insert; Scanner sc = new Scanner(System.in); System.out.println("Please enter number of elements in array: ... Add solution -
Java 2021-09-15 20:06:02
area of equilateral triangle in java
import java.util.Scanner; public class AreaOfEquilateral { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Please enter the side of equilateral triangle: "); double side =... Add solution -
Java 2021-09-14 01:15:01
Java program to print odd and even numbers in an array
import java.util.Scanner; public class EvenOddArray { public static void main(String[] args) { int numbers; Scanner sc = new Scanner(System.in); System.out.print("Please enter elements in array : "); numbe... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5