Dropdowns

import java.util.Scanner; /** * * @author AFAQ */ public class BinaryToDecimal { public static void main(String[] args) { int binary; Scanner sc = new Scanner(System.in); System.out.print(“Enter binary number=”); binary = sc.nextInt(); int decimal = 0; int n = 0; while (true) { if (binary == 0) { break; } else { int temp = binary […]

binary number binary to decimal binary to decimal conversion binary to decimal conversion method in java binary to decimal program in java c program to convert decimal to binary decimal to binary decimal to binary conversion decimal to binary conversion in java decimal to binary java decimal to binary java program how to convert binary to decimal in java how to convert binary to decimal in java program java tutorials program decimal to binary in c program to convert decimal to binary

Java constructor is similar to the method. It calls when an object(instance) of a class is created. Allocated in the memory when a constructor is called. It is used to initialize the object of a class. When an object is created using the new keyword, constructor is called. It calls a default constructor if there […]

java java tutorials

Java is an Object Oriented Programming language. There are many object oriented features in java such as Inheritance, Polymorphism, Abstraction, Encapsulation etc.

The first object-oriented programming language is Simula.
Java is known as truly object-oriented programming language because all java programs is written in class.

java java tutorials learn java study java

Short Name Format Program in Java

java java tutorials learn java study java

Words in Sentence Program in Java, Enter a sentence or string and print its words of string in java.

java tutorials learn java study java

Sentence Reverse Program in Java. Enter a sentence or string and print its reverse string in java.

java tutorials learn java study java

A number is said to be an Ugly number if positive numbers whose prime factors only include 2, 3, 5.
For example, 6(2×3), 8(2x2x2), 15(3×5) are ugly numbers while 14(2×7) is not ugly since it includes another prime factor 7. Note that 1 is typically treated as an ugly number.

java java tutorials learn java study java

A number is said to be a pronic number if product of two consecutive integers is equal to the number, is called a pronic number.
Example- 42 is said to be a pronic number, 42=6×7, here 6 and 7 are consecutive integers

java java tutorials learn java study java

Magic number is the if the sum of its digits recursively are calculated till a single digit If the single digit is 1 then the number is a magic number. Magic number is very similar with Happy Number.

java java tutorials learn java study java

Prime Number Up to N Terms Program in Java. Ex: Enter size of prime=5
Number is prime=2
Number is prime=3
Number is prime=5
Number is prime=7
Number is prime=11
Number is prime=13

java java tutorials learn java study java
On this page