<file_sep>import java.util.Scanner;

public class MainOperations extends SearchVowel {
	void disp() {
		System.out.println("********VOWEL SEARCH FROM KEYWORD*********");

		System.out.println("Input word to Match For vowel");
		Scanner inputData = new Scanner(System.in);
		System.out.println(inputData);

	}
	public static void main(String args[]) {
		MainOperations obj = new MainOperations();
		obj.disp();

	}

}
<file_sep>import java.util.*;
public class MeAndYou {
	public static void main(String args[]) {
		String me;
		Scanner obj = new Scanner(System.in);
		System.out.println("We Are........:");
		me = obj.nextLine();
		System.out.println("Biki & Bini "+me);
		
		
	}
}
<file_sep># PraticeJavaPrograms
Here is the list of java pratice programs for beginners. 
<file_sep>
public class DoWhileLopp {
	public static void main(String args[]) {
		int n = 10;
		do {
			System.out.println("Hello");
			n--;
		}while(n > 0);
	}
}
<file_sep>import java.util.*;
public class PerimeterOfRectangle {
	public static void main(String args[]) {
		double periOfRect, heightOfRect, widthOfRect;
		Scanner obj = new Scanner(System.in);
		System.out.println("****PERIMETER****");
		System.out.println("Enter height Of Rectangle :");
		heightOfRect = obj.nextDouble();
		System.out.println("Enter Widht of Rectangle :");
		widthOfRect = obj.nextDouble();
		periOfRect = 2*(heightOfRect+widthOfRect);
		System.out.print("Perimeter Of Rectangle is :"+periOfRect);
	}
}
<file_sep>
public class Test1 {
	public static void main(String args[]) {
		int m = 7;
		int n = 0;
			
		m = ++n;
		m = ++n;
		m = ++n;
		System.out.println(m);
	}
}
<file_sep>class Calc {
	int num1;
	int num2;
	int result;

	void operation() {
		result = num1+num2;
	}
}

public class ClassProg2 {
	public static void main(String args[]) {
		Calc obj = new Calc(); //knows something and does something
		obj.num1 = 10;
		obj.num2 = 20;
		obj.operation();
		System.out.println("The sum is :"+obj.result);
	}
}
<file_sep>import java.util.*;
public class NaturalNumber {
	public static void main(String args[]) {
		int i,n;
		Scanner obj = new Scanner(System.in);
		System.out.println("Enter Number Range :");
		n = obj.nextInt();
		for(i=1;i<=n;i++) {
			System.out.println("Natural Numbers are :"+i);
		}
	}
}<file_sep>import java.util.*;
public class AreaOfRectangle {
	public static void main(String args[]) {
		Scanner obj = new Scanner(System.in);
		double areaOfRect, heightOfRect, widthOfRect;
		System.out.println("******Area of Rectangle*******");
		System.out.println("Enter HeightOF the RectaNgle :");
		heightOfRect = obj.nextDouble();
		System.out.println("Enter WidthOf the RectaNgle :");
		widthOfRect = obj.nextDouble();
		areaOfRect = heightOfRect * widthOfRect;
		System.out.println("Area of the Rectangle is :"+areaOfRect);
		
	}
}
<file_sep>import java.util.*;
public class SwitchCase {
	public static void main(String args[]) {
//		int  num;
		String words;
		Scanner obj = new Scanner(System.in);
		System.out.println("Input the Numbers upto 5 :");
//		num = obj.nextInt();
		words = obj.next();
		switch(words)
		{
//		case 1:
//			System.out.println("One");
//			break;
//		case 2:
//			System.out.println("Two");
//			break;
//		case 3:
//			System.out.println("Three");
//			break;
//		case 4:
//			System.out.println("Five");
//			break;
//		case 5:
//			System.out.println("Six");
//			break;
		case "abc":
			System.out.println("One");
			break;
		case "def":
			System.out.println("Two");
			break;
		case "ghi":
			System.out.println("Three");
			break;
		case "jkl":
			System.out.println("Four");
			break;
		case "mno":
			System.out.println("Five");
			break;
		case "pqr":
			System.out.println("One");
			break;
		default:
			System.out.println("Does not exist");
		}
	}
}
<file_sep>public class LocalVaribale {
	//Global variable
	static int a = 10;
	static int b = 40;
	static int c;
	static void Test() {
		c = a+b;
		System.out.println(c);
	}
	public static void main(String args[]) {
//		int a = 10;
//		int b = 20;
//		int c = a+b;
		
		Test();
	}
}
<file_sep>
public class TernaryOperator {
//Ternary Operator
//	?: -> expr1:expr2
	public static void main(String args[]) {
		int i = 6;
		int j = 8;
		
//		Without ternary operator
//		if(i>j)
//			j=1;
//		else
//			j=2;
		j = i>j?5:6;
		System.out.println(j);
	}
}
<file_sep>import java.util.*;
public class Calculator {
	public static void main(String args[]) {
		double firstnum;
		double secondnum;
		Scanner obj = new Scanner(System.in);
		System.out.println("*******CALCULATOR*********");
		System.out.println("Enter First Number :");
		firstnum = obj.nextDouble();
		System.out.println("Enter Second Number :");
		secondnum = obj.nextDouble();
		System.out.println("Select Your Operation :");
		System.out.println("Addition-a: Substraction-b: Multiplication-c Division-d");
		char ch = obj.next().charAt(0);
		switch(ch) {
		case 'a':
			System.out.println("Addition of Number is :"+(firstnum+secondnum));
			break;
		case 'b':
			System.out.println("Substraction of Number is :"+(firstnum-secondnum));
			break;
		case 'c':
			System.out.println("Multiplication of Number is :"+(firstnum*secondnum));
			break;
		case 'd':
			System.out.println("Division of Number is :"+(firstnum/secondnum));
			break;
		default:
			System.out.println("You have choose invalid operator :");
			break;
		}
		
	}
}
<file_sep>class Demo {
	int num1;
	int num2;
	String operation;
	public Demo( ) {
		int num1 = 0;
		int num2 = 0;
		operation = "Arun";
	}
	public Demo(int i) {
		int num1 = i;
		int num2 = 0;
		operation = "Nothing";
	}
	public Demo(int i, int j) {
		int num1 = i;
		int num2 = j;
		operation = "Nothing";
	}
	public Demo(int i, int j, String op) {
		int num1 = i;
		int num2 = j;
		operation = op;
	}
}
public class ConstructorOverloading {
	public static void main (String args[]) {
		Demo obj = new Demo(2,3,"Arun");
	}
}
<file_sep>import java.util.*;
public class ForLoop {
	public static void main(String args[]) {
//		For Loop
		int a;
		Scanner obj = new Scanner(System.in);
		System.out.println();
		for(a=1; a<=10; a++) {
			System.out.println("HARI");
			
		}
	}
}
<file_sep>import java.util.*;
public class CountNumberOfDigits {
	public static void main(String args[]){
		int num, count=0;
		System.out.println("Ener number :");
		Scanner obj = new Scanner(System.in);
		num = obj.nextInt();
		while(num > 0) {
			num = num / 10;
			count = count + 1; 
		}
		System.out.println(count);
	}
}
<file_sep>import java.util.*;
class StudentDetail{
	String name;
	String branch;
	String sem;
	void DisplayOperation () {
		Scanner input = new Scanner(System.in);
		System.out.println("Enter Student Name :");
		name = input.nextLine();
		System.out.println("Enter Student Branch :");
		branch = input.nextLine();
		System.out.println("Enter Student Semester :");
		sem = input.nextLine();
		
	}
}
public class ClassProg3 {
	public static void main(String args[]) {
		StudentDetail obj = new StudentDetail();
		obj.DisplayOperation();
		System.out.println("Student Name is :"+obj.name);
		System.out.println("Studet Branch is :"+obj.branch);
		System.out.println("Student Sem is :"+obj.sem);
	}
}
<file_sep>import java.util.*;
public class Addition {
	public static void main(String args[]) {
		int a,b,c;
		Scanner obj = new Scanner(System.in);
		System.out.println("Enter First Number :");
		a = obj.nextInt();
		System.out.println("Enter Second Number :");
		b = obj.nextInt();
		c = a+b;
		System.out.println("The additon of number is :"+c);
	}
}
<file_sep>import java.util.*;
public class Prog2 {
	public static void main(String args[]) {
		Scanner obj = new Scanner(System.in);
		int marks;
		System.out.println("Enter the The marks of The student :");
		marks = obj.nextInt();
		marks = 600;
		if (marks <= 600) {
			System.out.println("Your Score is not good..!!!");
		}
	}
}
<file_sep>
public class OperatorDemo {
/*
 * Arithmatics Operations
 * Addition
 * Substraction
 * Multiplication
 * division
 * modulous
 */
	public static void main(String args[])
	{
		int a=6, b=4;
		int a1 = a+b;
		int a2 = a-b;
		int a3 = a*b;
		double a4 = (double)a/b;
		int a5 = a%b;
//	using short hand operator
		
		int m=6;
		int n=7;
		
		m=++n;
		System.out.println(m);
//		System.out.println(n);
		
//		n += m;
//		System.out.println(n);
		
//		n+=3;
//		System.out.println(n);
//		n++;
//		n--;
//		++n;
//		--n;
//		System.out.println(n);
//		System.out.println(n);
//		System.out.println(n);
//		System.out.println(n);
		
//		System.out.println(a1);
//		System.out.println(a2);
//		System.out.println(a3);
//		System.out.println(a4);
//		System.out.println(a2);
//		System.out.println(a5);

	}
}
<file_sep>
public class SearchVowel {
	String vowel;
	String storedData;
	String inputData;
}
