What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-19 20:26:07
Linear Search
//Java implementation of Linear Search import java.util.Scanner; public class LinearSearch { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int[] a = {10,20,50,30,40}; int key=s... Add solution -
Java 2021-10-19 04:30:05
java code leap year
import java.util.Scanner; public class LeapYear { public static void main(String[] args){ int year; System.out.println("Enter an Year :: "); Scanner sc = new Scanner(Sys... Add solution -
Java 2021-10-18 00:30:11
No such file or directory: 'h1.txt'
{ String lastName, firstName, status, gender; File list; File outFile; int i = 0; list = new File("/Users/3020418/Desktop/List.txt"); outFile = new File("ShoppingList.txt"); FileOutputStream outFileStream = new FileOutputStream(out... Add solution -
Other 2021-10-17 13:33:09
what is linear search
//Java implementation of Linear Search import java.util.Scanner; public class LinearSearch { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int[] a = {10,20,50,30,40}; int key=s... Add solution -
Java 2021-10-16 20:37:05
addition of two binary numbers in java
import java.util.Scanner; public class JavaExample { public static void main(String[] args) { long b1, b2; int i = 0, carry = 0; int[] sum = new int[10]; Scanner scanner = new Scanner(System.in); System.out.print("Enter first binary numb... Add solution -
Java 2021-10-15 03:27:10
java read input from user
Scanner sc = new Scanner(System.in); // Create a Scanner object String userName = sc.nextLine();//read input string int age = sc.nextInt(); //read input integer long mobileNo = sc.nextLong(); //read input long double cgpa = sc.nextDouble(); //read input ... Add solution