import java.applet.*;
import java.awt.event.*;
import java.awt.*;
/*<applet code="App8.class" height=600 width=600>
</applet>*/
public class App8 extends Applet implements ActionListener
{
TextField t1,t2,t3;
Button b;
Label l1,l2,l3;
int res;
public void init()
{
t1=new TextField(5);
t2=new TextField(5);
t3=new TextField(15);
b=new Button("divide");
l1=new Label("Num1");
l2=new Label("Num2");
l3=new Label("Result");
add(l1);
add(t1);
add(l2);
add(t2);
add(b);
add(l3);
add(t3);
b.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
try
{
int a=Integer.parseInt(t1.getText());
int b=Integer.parseInt(t2.getText());
res=a/b;
t3.setText(""+res);
}
catch (NumberFormatException ne)
{
t3.setText("Number format exception");
}
catch(ArithmeticException ae)
{
t3.setText("arithmetic exception");
}
}
}
The most common method to Hide your IP address is to use a PROXY server. Proxy server is a computer network service that provides an indirect connections between other computer networks. By using this proxy sites we can access any website with out revealing our IP address. This is the best method to keep your IP address secure. Here is the free proxy server website link. http://www.freeproxyserver.ca/ We need to type the URL of such as (www.facebook.com) in the box given in the site, then we can browse it with out providing our IP address
Comments
Post a Comment