Java program to print matrix

August 5, 2012 0

class Matrix
{
public static void main(String args[])
{
int i,j,k;
int mat1 [][]={ {10,11,12}, {13,14,15}, {16,17,18} };
int mat2 …

Java program to reverse a number

August 5, 2012 0

/********** Java Program To Print Reverse Of A Number ************/

class Reverse
{
public static void main(String args[])
{
int …

Java program for pyramid of numbers

August 5, 2012 0

class pyramid
{
public static void main(String args[])
{
int i,j;
for(i=1;i< =3;i++) { for(j=1;j<=i;j++) System.out.print(j+"\t"); System.out.println(); } } } /* OUTPUT 1 1 2 1 2 3

Java program to read a file

August 5, 2012 0

/***** Java Program to read a file and display it on the screen */

import java.io.*;
public class LioFile
{…

Java program to print Floyd’s triangle

August 5, 2012 0

import java.util.Scanner;
 
class FloydTriangle
{
   public static void main(String args[])
   {
      int n, num = 1, c, d;
      Scanner in …

Java program to swap two numbers

August 5, 2012 0

import java.util.Scanner;
 
class SwapNumbers
{
   public static void main(String args[])
   {
      int x, y, temp;
      System.out.println(“Enter x and y”);
      Scanner …

Java program to print multiplication table

August 5, 2012 0

import java.util.Scanner;
 
class MultiplicationTable
{
   public static void main(String args[])
   {
      int n, c;
      System.out.println(“Enter an integer to print it’s …

Spring Framework Introduction

February 15, 2012 0

Spring framework is widely used Java Open source framework.This is developed by springsource community.The latest version of spring framework is

1 2 3 5