Java program to convert a binary number to Decimal [Shortcut Method] Flying Angel 05:35 Java program to convert a binary number to Decimal [Shortcut Method] I have used basic String functions and explicit type casting to achiev...Read More
Java program to create a basic and simple ATM machine Flying Angel 08:41 Java program to create a basic and simple ATM machine In the below example, I have created a simple JAVA program for an ATM machine. If ...Read More
Java program to find frequency of characters in a string Flying Angel 10:21 Java program to find frequency of characters in a string import java.io.*; class Counting { public int countLetters(String nam,char ...Read More
What is Object-oriented programming(OOP)? Flying Angel 10:23 What is Object Oriented Programming? Object Oriented Programming ( OOP ) is an approach where data or objects are organised in a program....Read More
What is Bluej? Flying Angel 10:23 What is BlueJ ? BlueJ is a Java integrated development environment which was solely designed for educational purposes and for small-sc...Read More
JAVA Programming Flying Angel 10:22 JAVA Programming Have you heard of JAVA programming ? Have a look through the texts below. It will give you a clear idea about JAVA p...Read More
Java program to find hcf of two numbers Flying Angel 05:44 Java program to find hcf of two numbers import java.util.*; class HCF { public static void FindHCF(int x,int y) {int c=Math.max...Read More
Java program to check prime number in a given range Flying Angel 05:42 Java program to check prime number in a given range import java.util.*; class PrimeNo {public static void main() {Scanner Sc=new...Read More
JAVA program to define the size of an array, take input its elements, display the array, take input a number and check whether it is present in the array or not. Flying Angel 09:01 JAVA program to define the size of an array, take input its elements, display the array, take input a number and check whether it is pres...Read More
Java program to check disarium number Flying Angel 07:01 Java program to check disarium number import java.util.*; class disarium { public static void main() { Scanner Sc=new Scanne...Read More
Java program to generate fibonacci numbers Flying Angel 06:56 Java program to generate fibonacci numbers class Fibonacci { public static void main(int n) { int a =0;int b=1; System.out .print(...Read More
Java program to find area of scalene triangle Flying Angel 06:49 Java program to find area of scalene triangle In post I have discussed about the JAVA program to find area of scalene triangle . A...Read More
Java Program to Check Armstrong Number Flying Angel 05:54 Java Program to Check Armstrong Number By doing this program you will learn how to check for an 3 digit armstrong number using Java pro...Read More
JAVA Program to print following patterns with the help of users choice statement(switch-case).Print appropriate menu with options. (i) using for loop (ii) using while loop 1 2 3 4 5 A 1 2 3 4 A B 1 2 3 A B C 1 2 A B C D 1 A B C D E Flying Angel 04:34 JAVA Program to print following patterns with the help of users choice statement(switch-case) import java.util.*; ...Read More
Java Program to Find Factorial of a Number Flying Angel 04:33 Java Program to Find Factorial of a Number Example of factorial of a number___ 5: 1*2*3*4*= 120 -------------------...Read More
Rewrite the following program segment using switch case: char code; if(code==’B’ || code==’b’) System.out.println(“Bank Manager”); if(code==’C’ || code==’c’) System.out.println(“Charted Accountant”); if(code==’D’ || code==’d’) System.out.println(“Engineer”); if(code==’M’ || code==’m’) System.out.println(“Minister”) Flying Angel 03:55 char code; switch(code) ...Read More
A bank offers the following rate of interest for fixed deposit: Time(Years) Rate(%) < 1 9.0 1 to 2 10.0 2 to 3 11.0 > 3 12.0 WAP to accept deposited amount(P), number of years(n) the amount is deposited for and compute the accrued amount for an investor. Flying Angel 03:52 import java. util.*; class Bank { public static void main() { Scann...Read More
The pension rule of a certain country states that a man receives Rs.50/- a week if he is over 65 years and an extra Rs.20/- if he is over 70 years. A woman receives Rs.45/- a week if she is over 60 years and extra Rs.25/- if she is over 65 years.WAP which takes the sex(M for male, F for female) and age of the person as input print out the amount of weekly pension they would get. If a person is below the pensionable age,a suitable message must be printed. Flying Angel 03:50 import java. util.*; classPension { public static void main() { Scanner Sc=new Scanner(System.in); ...Read More
An institution has decided to admit new candidates in different streams on the following criteria: Total marks obtained Stream offered 300 and above Science 200 and above but less than 300 Commerce Below 200 but not below 75 Arts Otherwise Admission is not granted, you have to appear in a qualifying examination WAP to take input total marks obtained in an examination and pint the stream allotted Flying Angel 03:49 import java.util.*; class Eligibility { public static void main() { Scanner Sc=new Scanner(System.in); ...Read More
The telephone department wishes to compute monthly telephone bills Flying Angel 03:45 The telephone department wishes to compute monthly telephone bills The telephone department wishes to compute monthly telephone bills...Read More