Dropdowns

import java.util.Scanner; public class PrintCapitalString { public static void main(String[] args) { String st,wd=””,shortSt=””; int l; Scanner sc=new Scanner(System.in); System.out.print(“Enter String: “); st=sc.nextLine(); st=st+” “; l=st.length(); for (int i = 0; i < l; i++) { if(st.charAt(i)==’ ‘) { if(Character.isUpperCase(wd.charAt(0))) { System.out.println(wd); } wd=””; } else { char ch; ch=st.charAt(i); wd=wd+ch; } } } } […]

learn java study java

Example: 327 Multiply with 2: 327×2=654 Multiply with 3: 327×3=981 Now, concatenate the all number. “327”+”654″+ “981”= 327654981 Here we can see that all digits from 1 to 9 are available in concatenating string. import java.util.Scanner; public class FascinatingNumber { public static void main(String args[]) { int num, num2, num3; Scanner sc = new Scanner(System.in); […]

learn java study java

import java.util.Scanner; public class EvilNumber { public static void main(String[] args) { int n,num; Scanner sc = new Scanner(System.in); System.out.print(“Enter number=”); n = sc.nextInt(); int binaryDigits=0; String binary = “”; num=n; while (num > 0) { binary= num % 2 + binary ; if(num%2==1) { binaryDigits++; } num = num / 2; } if(binaryDigits%2==0) { […]

learn java study java

import java.util.*; public class InsertionSort { public static void main(String[] args) { int arr[] = new int[10]; Scanner sc = new Scanner(System.in); for (int i = 0; i < 10; i++) { System.out.print(“Enter the number ar[” + i + “]:”); arr[i] = sc.nextInt(); } int n = arr.length; int temp, j; for (int i = […]

learn java study java

import java.util.Scanner; public class DeletingElementFromArray { public static void main(String[] args) { int arr[] = new int[10]; Scanner sc = new Scanner(System.in); for (int i = 0; i < 10; i++) { System.out.print(“Enter the number ar[” + i + “]:”); arr[i] = sc.nextInt(); } int n = arr.length; int newarr[] = new int[n – 1]; […]

learn java study java

import java.util.Scanner; public class AddingElementInArray { public static void main(String[] args) { int arr[] = new int[10]; Scanner sc = new Scanner(System.in); for (int i = 0; i < 10; i++) { System.out.print(“Enter the number ar[” + i + “]:”); arr[i] = sc.nextInt(); } int n = arr.length; int newarr[] = new int[n + 1]; […]

learn java study java

import java.util.Scanner; /** * * @author AFAQ */ public class DecimalToBinary { public static void main(String[] args) { int decimal; Scanner sc = new Scanner(System.in); System.out.print(“Enter decimal number=”); decimal = sc.nextInt(); String binary = “”; while (decimal > 0) { binary= decimal % 2 + binary ; decimal = decimal / 2; } System.out.println(“Binary=”+binary); } […]

binary to decimal c program to convert decimal to binary convert decimal number to binary number convert decimal to binary in java decimal to binary decimal to binary conversion decimal to binary conversion in java decimal to binary in java decimal to binary java program decimal to binary program using java how to convert decimal to binary in java java program to convert decimal to binary learn java program to convert decimal numbers to binary numbers in c program to convert decimal to binary

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
On this page