Blogger Tutorial,C,C++,Java,Python Programming, Notes & Questions,Answers of Programming available in this blog.
For Visit Main Blog of this Blog : Click Here

Breaking

Showing posts with label JAVA Programming. Show all posts
Showing posts with label JAVA Programming. Show all posts

Thursday, 2 January 2020

January 02, 2020

JAVA Pattern Programs || WORPS Khariar Exam

PATTERN 1 :-

import java.util.Scanner;
class WORPS
{
    public static void main()
    {
        System.out.println("Enter Any Word :");
        Scanner sc=new Scanner(System.in);
        String s;
        s=sc.next();
        char ch1;
        int d=s.length();
        for(int i=d-1;i>=0;i--)
        {
            for(int j=0;j<=i;j++)
            {
            ch1=s.charAt(j);
            System.out.print(ch1+" ");
        }
        System.out.println();
    }
}
}
JAVA Pattern Programs

PATTERN 2 :-

import java.util.Scanner; 
public class WORPS1
{            
   public static void main() 
   {
        for (int i = 5; i >= 1; i--)
        {
          int n = 5;
            for (int j = 0; j<= n - i; j++)
            { 
                System.out.print(" ");
            }
            for (int k = i; k >= 1; k--)
            {
                System.out.print(k);
            }
          System.out.println();
        }
   }
}
JAVA Pattern Programs || WORPS Khariar
Original Post : https://sarthakmunds3.blogspot.com/2020/01/java-pattern-programs.html

Tuesday, 11 June 2019

June 11, 2019

JAVA Programming || All Programs of Java ☺

JAVA Programming
In this post you Find All Programs of Java programming.

1. Write a Program (WAP) in Java to print "Hello World".

Click Here - For Answer

2. WAP in Java to read two numbers from keyboard (User Input) and perform addition, Subtraction, multiplication & division using assignment operator.

Click Here - For Answer

3. WAP in Java to read two numbers from keyboard (User Input) and exchanging value of two variable(Swapping).

Click Here - For Answer

4. WAP in Java to read two numbers from keyboard (User Input) and calculate area of triangle.

Click Here - For Answer

5. WAP in Java to read two numbers from keyboard (User Input) to know a character is vowel or Consonant.

Click Here - For Answer

6. WAP in Java to read two numbers from keyboard (User Input) to check Character is alphabet or not.

Click Here - For Answer

7. WAP in Java to read two numbers from keyboard (User Input)to find ASCII value of character.

Click Here - For Answer