What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-26 02:44:15
Java program to find which department has highest placement program
import java.util.Scanner;public class Main{public static void main (String[] args){Scanner sc=new Scanner(System.in);System.out.println("Enter no of students placed in Computer science");int Computerscience= sc.nextInt();System.out.println("... Add solution -
TypeScript 2021-10-21 00:36:06
Write a program in Java for Banking Application in which user deposits the amount Rs 2000/- and then start withdrawing of Rs 1000/-, Rs 500/- and it throws exception "Not Sufficient Fund" when user withdraws Rs. 750/- thereafter.
import java.util.*; class Bank { float fund; void deposit(float amount) { fund=amount; } void withdraw(float money) throws Exception { float newFund=fund-money; if(newFund<500) { throw... Add solution -
Java 2021-10-12 10:45:05
remove extra blank spaces from string in java
import java.util.Scanner; class RemoveExtraSpace{ //starting of class public static void main(String[] args){ //starting of the main function Scanner sc=new Scanner(System.in); //declaring an object of the Scanner class String input,ou... Add solution -
Other 2021-09-30 01:19:03
Write a program to input a word from the user and remove the duplicate characters present in it.
// Java program to remove duplicate/repeated characters from a string www.getprogramcode.com import java.util.*; class RemoveDuplicate { public static void main(String args[]) { String s,ans=""; char ch ; int l,i=0; Scanner sc=new S... Add solution -
Java 2021-09-22 12:41:03
java code to right rotate an array
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) { Scanner sc=new Scanner(System.in); // your code... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5