palindrome import java.util.*; class palindrome { public static void main(String args[]) { String original, reverse ="&... Samridhi Sinha March 25, 2019 0

Login screen window import java.awt.*; import java.awt.event.*; public class AEvent { public static void main(String[] args) { ... Samridhi Sinha March 25, 2019 0

Overloading import java.io.*; class overloaddemo { int upperCaseCounter=0,lowerCaseCounter=0,digitCounter=0,whiteSpaceCounter=0,specialCoun... Samridhi Sinha March 25, 2019 0

Hello World in different colors import java.applet.Applet; import java.awt.Graphics; import java.awt.Color; /* <applet code = "HelloWorldInDifferentC... Samridhi Sinha March 25, 2019 0

Applet in java import java.awt.*; import java.applet.*; public class abc1 extends Applet { /* <applet code='abc1.class' wid... Samridhi Sinha March 25, 2019 0

Interface import java.lang.*; import java.io.*; interface Exam { void percent_cal(); } class Student { String name... Samridhi Sinha March 25, 2019 0

Exception Handling public class MultipleCatchBlocks { public static void main( String args[ ] ) { int x = 5 , y = 0 , z; ... Samridhi Sinha March 25, 2019 0

Thread class RunnableDemo implements Runnable { private Thread t; private String threadName; RunnableDemo( String name) { t... Samridhi Sinha March 25, 2019 0

Quadratic Equation import java.util.*; class quadratic { public static void main(String args[]) { int a,b,c,x; System.out... Samridhi Sinha March 25, 2019 0

Vectors in java import java.util.*; public class VectorExample1 { public static void main(String args[]) { Vector vec = new Vector()... Samridhi Sinha March 25, 2019 0

GCD and LCM import java.util.*; class gcd_lcm { int gcd(int p, int q) { if(p==0) return q; else retur... Samridhi Sinha March 16, 2019 0

change case import java.util.*; import java.io.*; class string2 { String str; void change_case() { int i; Strin... Samridhi Sinha March 16, 2019 0

Reverse a string import java.util.*; class reverse_string { String str; void reverse() { String temp=""; for(i... Samridhi Sinha March 16, 2019 0

Factorial using recursion import java.util.*; class Recursive_fact { int n; int factorial(int n) { if(n==1) return 1; el... Samridhi Sinha March 16, 2019 0

Fibonacci series using recursion import java.util.*; class FibonacciSeries{ int n1=0,n2=1,n3=0; void printFibonacci(int count) { if(count>... Samridhi Sinha March 16, 2019 0

Spiral Matrix import java.util.*; class Spiral { int a[][]; int n; Spiral(int N) { a=new int[N][N]; n=N; ... Samridhi Sinha March 16, 2019 0

Selection Sort import java.util.*; class selection_sort { void sort(int array[]) { int i,j,small,temp,pos=0,k=0; for( i=0;i&l... Samridhi Sinha March 16, 2019 0

Bubble Sort import java.util.*; class bubble_sort { void sort(int num[]) { int j; boolean flag=true; int temp; ... Samridhi Sinha March 16, 2019 0

Insertion Sort import java.util.*; public class insertion_sort { void Sort(int array[]) { int n = array.length; for (... Samridhi Sinha March 16, 2019 0

Merge Array import java.util.*; public class merge_array { void merge() { int i,j,k; int n1, n2, size; int arr1[]... Samridhi Sinha March 16, 2019 0

Number Pattern /*22345 33345 44445 55555*/ public class num_pattern { void pattern() { int i,b,c,p=2; for( i... Samridhi Sinha March 16, 2019 0

Tribonacci Series //The tribonacci series is a generalization of the Fibonacci sequence where each term is the sum of the three preceding terms. import j... Samridhi Sinha March 16, 2019 0

Twin Prime Series //A twin prime is a prime number that is either 2 less or 2 more than another prime number—for example, either member of the twin prime pa... Samridhi Sinha March 16, 2019 0

Smith Number //A Smith Number is a composite number whose sum of digits is equal to the sum of digits in its prime factorization. import java.util... Samridhi Sinha March 16, 2019 0

Pronic Number A pronic number is a number which is the product of two consecutive integers , that is,a number of the form n(n + 1). ... Samridhi Sinha March 16, 2019 0

Neon Number A number is said to be a Neon Number if the sum of digits of the square of the number is equal to the number itself. Example- 9 is ... Samridhi Sinha March 16, 2019 0

Automorphic Number In mathematics, an automorphic number is a number whose square "ends" in the same digits as the number itself. For example, ... Samridhi Sinha March 15, 2019 0