Java Codes

jQuery Generate Years Dropdown Dynamically using JavaScript

Here i’ll justify a way to use jQuery to come up with years dropdown dynamically in JavaScript or JavaScript generate years dropdown dynamically. <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>Generate years for dropdown

Java Codes

Simple Java Code to add two matrices

Simple Java Program for Adding two matrices of any order import java.util.Scanner; public class AddTwoMatrixPostslush { public static void main(String args[]) { int m, n, c, d; Scanner in =

Java Codes

Java Program to print Multiplication Table

This is the simple program from which we can print the table of integeraccording to our choice. In this program we are using “for loop” which will display the table.

Java Codes

Java Program to print Alphabets

This is the simple and also the favorite program of an new learning student who start’s learning “Java” language.This will be the initial step for every new programmer to built

Java Codes

Java Program for finding Armstrong number

Here is a simple program in java to find whether the Entered number is an Armstrong number or not Its a two step process Using a While Loop and If

Java Codes

Simple Java program to reverse a String

This Program is a to reverse a String in Java charAt Method is used extract Characters from the string The program as follows import java.util.*; class ReverseString {    public

Java Codes

Java simple program to print Integers

class Integers {   public static void main(String[] arguments) {     int c; //declaring a variable   /* Using for loop to repeat instruction execution */     for

Java Codes

Simple Calculator in Java’s Swing Components

Here is a Source Code to make a Simple Calculator using Java Swing As we all know that Swing is use as java Graphics to give use interface a better

Java Codes

Java program to find factorial of a number

import java.util.Scanner; class Factorial {    public static void main(String args[])    {       int n, c, fact = 1;       System.out.println(“Enter an integer to calculate it’s factorial”);       Scanner

Java Codes

Java program to check number is palindrome or not

  package testing; import java.util.Scanner; /**  * Java program to check if number is palindrome or not.  * A number is called palindrome if number and its reverse is equal

  • 1
  • 2