Tag Archives: Java Program

Java Program to illustrate the function Character.IsLetter – JAVA 10th Class notes

Java Program to illustrate the function Character.IsLetter – JAVA 10th Class notes /* Program to illustrate the function Character.IsLetter*/   import java.io.*; class IsLetter_Fun { public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.print(” Enter a Character : “); char ch = (char) br.read(); boolean b=Character.isLetter(ch); if(b==true) System.out.println(” It is […]

ICSE JAVA 10th standard Notes – Break statements in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – Break statements in Java with example – ICSE Notes Break Statement :- The break statement inside a loop will abort the loop and transfer the control to the statement following the loop. The break statement enables a program to skip over a part of the code. A break statement […]

ICSE JAVA 10th standard Notes – Nested Loop in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – Nested Loop in Java with example – ICSE Notes   Nested Loops :- A loop containing another loop in its Loop-Body is known as the Nesting of the Loops or Nested Loops. NOTE :- The inner loop must terminate before the outer loop.   Syntax for Nesting of FOR […]

ICSE JAVA 10th standard Notes – Do While Loop in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – Do While Loop in Java with example – ICSE Notes Do-While Loops :- The Do-While Loop is an Exit controlled Loop. The Do-While Loop evaluates its test expression at the bottom of the loop after executing its loop-body statements. This means that the body of the Do-While Loop is […]

ICSE JAVA 10th standard Notes – While Loop in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – While Loop in Java with example – ICSE Notes While Loop :- The While Loop in Java is an Entry Controlled Loop. The While loop contains only a Test Expression. The Loop iterates when the test expression evaluates to True and when the test expression is False the program […]

ICSE JAVA 10th standard Notes – Infinite Loop in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – Infinite Loop in Java with example – ICSE Notes Infinite Loop :- When the loop does not terminate, then such loops are called as Infinite Loops. An infinite For Loop can be created by Omitting the Test Expression. Example :- Java Program for Infinite Loop class ForLoop { public […]

ICSE JAVA 10th standard Notes – FOR Loop in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – FOR Loop in Java with example – ICSE Notes FOR Loop Variations :- Java provides several for loop variations that increase the flexibility and the applicability of the for loop. There are different For Loop variations namely : Multiple Initializations and Update Expressions. Optional Expressions. Infinite Loop. Empty Loop. […]

ICSE JAVA 10th standard Notes – Types of loops in Java with example – ICSE Notes

ICSE JAVA 10th standard Notes – Types of loops in Java with example – ICSE Notes Types of Loops :- There are three types of loops in Java namely : For Loop. While Loop. Do-While Loop.   For Loop :- For Loop is an entry controlled loop. All its loop-controls are gathered in one place. […]

ICSE Java Program -Java Program to develop a Calculator using Switch Statement

ICSE Java Program -Java Program to develop a Calculator using Switch Statement  Java Program to develop a Calculator using Switch Statement. import java.io.*; class Calculator_Switch { public static void main(String args[])throws IOException { DataInputStream dis = new DataInputStream(System.in); int a,b,c,res=0; char op; String str; System.out.println(” Enter three Numbers : “); a=Integer.parseInt(dis.readLine()); b=Integer.parseInt(dis.readLine()); System.out.println(” Enter the […]

ICSE 10th Standard Notes – Conditional Operator in java – ICSE Conditional Operator with example

ICSE 10th Standard Notes – Conditional Operator in java – ICSE Conditional Operator with example Conditional Operator :- The conditional operator is an alternative to the If-Else Statement. It is also known as the Ternary Operator in Java. Syntax :- expression1 ? expression2 : expression3 Here initially the expression1 is evaluated. It the result of […]