Archive for June 2015

class StringDemo {public static void main (String args[]){String str = "I am vijay";System.out.println("The string is: " + str);System.out.println("The string in upper case: " + str.toUpperCase());System.out.println("Length...

class arithmetic{ public static void main(String args[]) { short x = 8; int...

class printOdd
{
public static void main(String args[])
{
for(int x=1; x<10; x=x+2)
...

class printEven{ public static void main(String args[]) { for(int x=0; x<10; x=x+2) ...

Syntax:
for(initialization; condition; iteration)
statement;
Program:
class printNumber{ public static void main(String args[]) { ...

Syntax:
if(condition 1)
statement 1;
else if (condition 2)
statement 2;
else if (condition 3)
statement 3;
else
statement 4;
Grade System Program:
import java.util.Scanner;
class result...

Syntax:
if(condition)
statement 1;
else
statement 2;
Program:
import java.util.Scanner;
class result
{
public static void main(String[] args)
{
...

Syntax:
if(condition)
statement;
Program:
import java.util.Scanner;
class result
{
public static void main(String[] args)
{
...

import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;class palindrome{ public static void main(String[] args) { ...

import java.io.BufferedReader;
import java.io.InputStreamReader;
class Reverse
{
public static void main(String[] args)
{
...

import java.util.Scanner;class fibonacci{ public static void main(String[] args) { System.out.print("Enter the number to display fibonicci...

import java.util.Scanner;class pyramidShape { public static void main(String[] args) { System.out.print("Enter number of rows: "); Scanner...

import java.util.Scanner;class diamondShape { public static void main(String[] args) { System.out.print("Enter...
Client / Server Program With Acknowledgement
Friday, 26 June 2015
Posted by Unknown
Tag :
Client Server Program

Sender Side Program
import java.io.*;
import java.net.*;
class slidingSender
{
public void process()
{
try
...

Multicast Sender
import java.net.*;
import java.io.*;
class MulticastSender implements Runnable
{
static int port;
static MulticastSocket ms;
...

import java.io.*;class ShortPath{ public int vertex; public int edge; public int arrval[][]=new int[10][10]; public...

Client Side Program
import java.io.*; import java.net.*; class TCPClient { public static void main(String args[]) throws Exception { String sentence;...

Client Side Program
import java.io.*;
import java.net.*;
class ChatClient extends Thread
{
Socket s;
static PrintWriter...

import java.util.Scanner;
class solutions
{
public static void main(String[] args)
{
...

import java.awt.*;import javax.swing.*;import javax.swing.event.*;public class TransparencyDemo extends JPanel
{ public static void main(String[] args)
...

import java.awt.*;import java.awt.event.*;import java.awt.image.BufferedImage;import javax.swing.*;public class ToolBarDemo extends JPanel
{ public static void...