排序
array mark ,equal mark,small mark,highest mark, second highest mark
array mark ,equal mark,small mark,highest mark, second highest mark,Program 1: package afterfeb13; public class secondgreater { public static void main(String[] args) { int[] mark ...
calculator using scanner class
calculator using scanner class,package afterfeb13; import java.util.Scanner; public class calculator { static int c = 0; public static void main(String[] args) { Scanner sc = new S...
Java User Input (Scanner)
Java User Input (Scanner),Java User Input The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the c...
Recursion in Java
Recursion in Java,Recursion in Java In Java, Recursion is a process in which a function calls itself directly or indirectly is called recursion and the corresponding function is ca...
forloop-pattern for num 1 2 3 4 5 6 7 8 9 & star pattern
forloop-pattern for num 1 2 3 4 5 6 7 8 9 & star pattern, program:1 package afterfeb13; public class patternfornumber { public static void main(String[] args) { // number1(); // nu...
pattern using forLOOP–**U,T,O,N,Z,X,E,F,H,K,M,Y,W,P,Q,R.**
pattern using forLOOP--**U,T,O,N,Z,X,E,F,H,K,M,Y,W,P,Q,R.**,U,T,O,N,Z,X,E,F,H,K,M,Y,W,P,Q,R. package Afterfeb4; public class forlooppattern1 { public static void main(String[] args...
Java For Loop,Do/While Loop,i++ and ++i in Java?
Java For Loop,Do/While Loop,i++ and ++i in Java?, What is the Difference Between i++ and ++i in Java? ++i and i++ both increment the value of i by 1 but in a different way. If ++ p...
strong,perfect number
strong,perfect number,Armstrong Java Math.pow() Method The Math.pow() is used to calculate a number raise to the power of some other number. This function accepts two parameters an...
neon,emirp,prime,armstrong,prime,sum,reverse -numbers
neon,emirp,prime,armstrong,prime,sum,reverse -numbers,Sum of Number package Afterfeb4; public class sumofnumber { public static void main(String[] args) { int no = 96785; int sum =...
switch , while loop
switch , while loop,Java Switch Statements Instead of writing many if..else statements, you can use the switch statement. The switch statement selects one of many code blocks to be...
Java if-else Statement
Java if-else Statement,You already know that Java supports the usual logical conditions from mathematics:(TBD) Less than: a < b Less than or equal to: a <= b Greater than: a ...
Scenario-1,2,3
Scenario-1,2,3,Note: Add main method wherever necessary. Each and every scenario presented here are for getting good understanding on OOP(Object Oriented Programming) through Java....