Monday, 25 August 2014

finding ip address of a computer using java program

import java.io.*; import java.net.InetAddress; public class ipadd{ public static void main(String[] args) { boolean flag=false; String str=""; try {


Read more..

Sunday, 24 August 2014

Remote method invocation(RMI)

The Java Remote Method Invocation (Java RMI) is a Java API that performs the object-oriented equivalent of remote procedure calls (RPC), with support for direct transfer of serialized Java classes and distributed garbage collection.


Click here to view compiling procedure
Click here to view server interface
Click here to view server implementation
Click here to view server program
Click here to view client program

Program for exchange of information(communication through UDP)

import java.io.*; import java.net.*; import java.util.*; public class UdpReceiver { public static void main(String args[])throws IOException { try { DataInputStream dis=new DataInputStream(System.in); byte[] rdata=new byte[1024];


Click here for Udp Receiver
Click here for Udp Sender

Sunday, 17 August 2014

Implementing stack (with arrays)operations using dynamic memory allocation

#include<stdio.h>
#include<stdlib.h>
void push();
void pop();
void display();
int *stack,*top,n;
void main()
{
int ch;
printf("Enter the size of stack:\n");

Read more...

Dynamic memory allocation using calloc()

#include #include int *a,*t,n; void main() { printf("Enter the size of array:\n");

Read more...

Friday, 15 August 2014

Demonstrating mouse motion listener interface-2


import java.applet.*; import java.awt.*; import java.awt.event.*; import java.lang.Math; public class Brush2 extends Applet implements MouseMotionListener { int width, height; Image backbuffer; Graphics backg; int mx, my; double t = 0;

Read more...

Demonstrating mouse motion listener Interface-1


import java.applet.*; import java.awt.*; import java.awt.event.*; public class Brush1 extends Applet implements MouseMotionListener { int width, height; Image backbuffer; Graphics backg; public void init() { width = getSize().width; height = getSize().height;

Read more...