Latest Post

Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Write a JAVA program to print the following message

package pattern; public class Pattern {     public static void main(String[] args) {         System.out.println ( "C") ;         ...

Write a JAVA program that performs all mathematical operations on two variables.

  public class MathemacticaOperations{ public static void mai n(String[] args) {        int num1 = 5, num2 = 10;       int sum;       int d...

JAVA program add two numbers.

  package add2num; public class ADD2num {    public static void main(String[] args) {          int first=123;         int second=321;     ...

Write a JAVA Program to calculate and print the area of square with given height and width.

  package area; public class Area {     public static void main(String[] args) {                 int height; int width; int area; ...

First program in JAVA "Hello World"

  package hello.world; public class HelloWorld {     public static void main (String[] args) {                 System. out .println( "...