Apr

04

//——————————– arp1.c ———————————————

#include<stdio.h>
void main(){
int a[5];
int *ptr;
int i;
printf(“Enter Five Numbers:\n”);
for(i=0;i<5;i++){
scanf( “%d”,&a[i]);
}
ptr=a;
printf(“\n Value of ptr is: %d\n”,ptr);
printf(“Entered Five Numbers is:\n”);
/*for(i=0;i<5;i++){
printf(“%d\n”,*ptr+i);
}*/
for(i=0;i<5;i++){
printf(“%d\n”,*(ptr+i));
}
printf(“\n Value of ptr is: %d”,ptr);
printf(“\n——————————–\n”);
for(i=0;i<5;i++){
printf(“%d\n”,*ptr++);
}
printf(“\n Value of ptr is: %d”,ptr);
}

Mar

29

#include<conio.h>
#include<stdio.h>
void add(int x){
x=x+2;
printf(“\n%d”,x);
}
void addref(int *x){
*x=*x+2;
printf(“\n%d”,*x);
}
void main(){
int a;
scanf(“%d”,&a);
printf(“\nValue of a before function call %d”,a);
add(a);
printf(“\nValue of a after function call %d”,a);
printf(“\nValue of a before function call %d”,a);
addref(&a);
printf(“\nValue of a after function call %d”,a);
}

 

Feb

28

Android Mobile Application Development

Android Mobile Application Development

SMS Varanasi is organizing a workshop for MCA-IVth Semester Students on “Android Mobile Application Development” conducted by Waayoo.com (an educational division of Vaskoe Technologies Private Limited) from 3rd to 10th March 2014.

Detailed Content:

1) Introduction :

  • Intro to open source .What is open source?
  • License Issues (MPL, GPL, LGPL, etc.)
  • Contrasting and comparing open source vs. traditional development

2) Mobile Application Development Overview :

  • Mobile Devices Profiles
  • Mobile Software, Options for development

3) Targeting Android -The Big Picture:

  • Introducing Android, Stacking up Android
  • Booting Android Development, An Android application

4) Development Environment:

  • The Android SDK
  • Building an Android Application in Eclipse
  • The Android Emulator, Debugger

5) User interfaces:

  • Activity LifeCycle, Creating the Activity
  • An Overview of User interfaces, Using XML Layouts
  • Selection Widgets, Date and Time Tabs
  • Using Menus, Dialog Boxes, Using Resources

6) Intents and services:

  • Working with Intent classes
  • Listening in with broadcast receivers
  • Building a Service
  • Performing Inter Process Communication

7) Storing and retrieving data:

  • Using preferences, Using the filesystem
  • Persisting data to a database
  • Working with ContentProvider classes

8) Networking and Web services:

  • An overview of networking
  • Communication with server socket
  • Working with HTTP, Web Services

9) Telephony:

  • Telephony background and terms
  • Accessing telephony information
  • Interaction with the phone, Working with HTTP
  • Working with messaging SMS

10) Graphics and Animation
11) Multimedia
12) Location Services:

  • Simulating your location within the emulator
  • Using LocationManager and LocationProvider
  • Working with maps
  • Converting places and addresses with Geo Coder

13) Introduction to Architecture overview of Android kernel internals
14) Final Project

 

Jan

28

#include<stdio.h>

#include<conio.h>

void main(){

int num[50],n,i,key;

printf(“Values want to enter: “);

scanf(“%d”,&n);

for(i=0;i<n;i++){

scanf(“%d”,&num[i]);

}

printf(“\nEnter value want to search: “);

scanf(“%d”,&key);

for(i=0;i<n;i++){

if(num[i]==key){

printf(“\nValue %d is at position %d”,key,++i);

break;

}

}

}

//——————————————————————————————————–

#include<stdio.h>

#include<conio.h>

void main(){

int num[50],n,i,key;

printf(“Values want to enter: “);

scanf(“%d”,&n);

for(i=0;i<n;i++){

scanf(“%d”,&num[i]);

}

printf(“\nEnter value want to search: “);

scanf(“%d”,&key);

for(i=0;i<n;i++){

if(num[i]==key){

printf(“\nValue %d is at position %d”,key,i+1);

}

 

}

}

//——————————————————————————————————–

#include<stdio.h>

#include<conio.h>

void main(){

int num[50],n,i,key,flg=0;

printf(“Values want to enter: “);

scanf(“%d”,&n);

for(i=0;i<n;i++){

scanf(“%d”,&num[i]);

}

printf(“\nEnter value want to search: “);

scanf(“%d”,&key);

for(i=0;i<n;i++){

 

if(num[i]==key){

printf(“\nValue %d is at position %d”,key,i+1);

flg=1;

}

}

if(flg==0)

printf(“\nThis number doesnot exist”);

}

//——————————————————————————————————-

#include<stdio.h>

#include<conio.h>

void main(){

int num[50],n,i,key,flg=0;

printf(“Values want to enter: “);

scanf(“%d”,&n);

for(i=0;i<n;i++){

scanf(“%d”,&num[i]);

}

printf(“\nEnter value want to search: “);

scanf(“%d”,&key);

for(i=0;i<n;i++){

 

if(num[i]==key){

printf(“\nValue %d is at position %d”,key,i+1);

flg=1;

}

}

if(flg==0)

printf(“\nThis number doesnot exist”);

}

//—————————————————————————————————-

#include<stdio.h>

#include<conio.h>

void main(){

int num[3][3],i,j;

printf(“Enter Values in 3 x 3 array: “);

for(i=0;i<3;i++){

for(j=0;j<3;j++){

scanf(“%d”,&num[i][j]);

}

}

printf(“\nValues in 3×3 array are:\n”);

for(i=0;i<3;i++){

for(j=0;j<3;j++){

printf(“%6d”,num[i][j]);

}

printf(“\n”);

}

//————–TRANSPOSE

printf(“\nMatrix transpose —\n”);

for(i=0;i<3;i++){

for(j=0;j<3;j++){

printf(“%6d”,num[j][i]);

}

printf(“\n”);

}

}

Jan

22

Click below link to download:

Multiple Choice Questions on C (SET-2) Find Output/ Errors

Jan

21

CLICK BELOW LINK TO DOWNLOAD JAVA PROGRAMS:

FIND THE OUTPUT OF JAVA PROGRAMS-1

Jan

21

click the below link to donwnload

OBJECTIVE QUESTIONS BASED ON JAVA BASIC CONCEPT (SET-2)

Jan

21

CLICK BELOW URL TO DOWNLOAD QUESTIONS AND ANSWER THEM

OBJECTIVE QUESTIONS BASED ON JAVA BASIC CONCEPT

Jan

20

Click To Download and Answser Them

 

Jan

06

JK Technosoft Ltd hiring Software Trainee

 JOB DESCRIPTION / DESIRED CANDIDATE PROFILE

We are looking for passing batch of 2014 for MCA/B.E./B.Tech for software trainee position.
Last date to apply for the position is 10-January-2014 . If you have already applied in last six month, do not apply again. Only apply in the prescribed format below, otherwise your application will be rejected.
Date for Written test : 18-January-2014
Start Date for Training : 3-February-2014

Eligibility Criteria:
We are looking for passing batch of 2014 for MCA/B.E./B.Tech for software trainee position.

1) Should be an MCA or B.Tech in Computer Science / IT.
2) Aggregate marks should be 75% or above till declared result.
3) Candidates having prior experience in RDBMS, will be preferred.

Selection Procedure:
1) After successful screening of resume, you will get a call for relevant test.
2) After successful completion of test/GD/Interview, you will be offered a software trainee position with Rs 5000 per month stipend.
3) The training period will be of 6 Months.
4) After the successful completion of training, you will be offered a permanent Software Engineer Trainee position in our organization, with starting package of 3 Lacs per year.
5) There is a bond of 2.5 Years for which you are required to sign the bond and provide us the Bank Guarantee of Rs. 1.0 Lac. The bank guarantee must be provided at the time of joining as Trainee.
6) Shortlisted candidates will be informed about date and venue for written test.

QUALIFICATION CRITERIA

Experience             : 0 to 1 yrs
Salary                      : Not specified
Job Location          : Noida
Qualification           : BE/B.Tech, MCA

COMPANY DETAILS

Company Name      : JK Technosoft Ltd
Company Address : NA
Company Profile    : JK Technosoft (JKT) is a global software & solutions company that is driven by the simple yet powerful tenet of providing ‘total customer satisfaction’. A valuable asset of the JK Organization, one of India’s largest industrial groups with an annual turnover exceeding US$ 4 billion, JKT is at the leading edge of comprehensive IT services & solutions

for more details click the below URL:-

http://cosmolore.com/jobs/jk-technosoft-hiring-for-2014-batch-mcab-e-b-tech-freshers-last-date-10th-january-2014/

CLICK HERE TO APPLY:-

http://jobsearch.naukri.com/job-listings-Software-Trainee-JK-Technosoft-Ltd-Noida-0-to-1-020114001263?xz=10_0_3&xo=&xp=44&xid=138875143245503600&qjt=&qp=it+software&id=&f=-020114001263

 

 

Nov

16

import java.awt.*;
import java.awt.event.*;
public class Frame8 extends Frame{
Checkbox cb1,cb2;
Frame8(){
setLayout(new FlowLayout());
cb1=new Checkbox(“AB”);
cb2=new Checkbox(“DE”);
add(cb1);
add(cb2);
setSize(300,300);
setVisible(true);
}
public static void main(String ar[]){
Frame8 f2=new Frame8();
}
}
//——————————————————————
import java.awt.*;
import java.awt.event.*;
public class Frame9 extends Frame{
Checkbox cb1,cb2;
CheckboxGroup cbg;
Frame9(){
cbg=new CheckboxGroup();
setLayout(new FlowLayout());
cb1=new Checkbox(“AB”,cbg,true);
cb2=new Checkbox(“DE”,cbg,false);
add(cb1);
add(cb2);
setSize(300,300);
setVisible(true);
}
public static void main(String ar[]){
Frame9 f2=new Frame9();
}
}
//——————————————————————–
import java.awt.*;
import java.awt.event.*;
public class Frame10 extends Frame{
Checkbox cb1,cb2,cb3;
CheckboxGroup cbg;
Frame10(){
cbg=new CheckboxGroup();
setLayout(new FlowLayout());
cb1=new Checkbox(“PG”,cbg,true);
cb2=new Checkbox(“G”,cbg,true);
cb3=new Checkbox(“UG”,cbg,true);
add(cb1);
add(cb2);
add(cb3);
setSize(300,300);
setVisible(true);
}
public static void main(String ar[]){
Frame10 f2=new Frame10();
}
}
//————————————————————————-
import java.awt.*;
import java.awt.event.*;
public class Frame11 extends Frame{
Choice ch1;
Frame11(){
setLayout(new FlowLayout());
ch1=new Choice();
ch1.add(“—-“);
ch1.add(“A”);
ch1.add(“B”);
ch1.add(“C”);
add(ch1);
setSize(300,300);
setVisible(true);
}
public static void main(String ar[]){
Frame11 f2=new Frame11();
}
}
//———————————————————————-
import java.awt.*;
import java.awt.event.*;
public class Frame12 extends Frame{
List list1;
Frame12(){
setLayout(new FlowLayout());
list1=new List(3);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
list1.add(“AAAA”);
add(list1);
setSize(300,300);
setLocation(100,100);
setVisible(true);
}
public static void main(String ar[]){
Frame12 f2=new Frame12();
}
}
//————————————————————————–
import java.awt.*;
import java.awt.event.*;
public class Frame13 extends Frame implements AdjustmentListener{
Scrollbar sb1;
Frame13(){
setLayout(null);
sb1=new Scrollbar(Scrollbar.HORIZONTAL,1,5,0,100);
sb1.setBounds(50,50,200,30);
add(sb1);
sb1.addAdjustmentListener(this);
setSize(300,300);
setLocation(100,100);
setVisible(true);
}
public void adjustmentValueChanged(AdjustmentEvent e){
System.out.println(sb1.getValue());
}
public static void main(String ar[]){
Frame13 f2=new Frame13();
}
}
//——————————————————————————
import java.awt.*;
import java.awt.event.*;
public class Frame14 extends Frame{
MenuBar mb;
Menu M1,sm1;
MenuItem mi1,mi2,mi3,mi4,mi5;
Frame14(){
mb=new MenuBar();
M1=new Menu(“MENU1”);
sm1=new Menu(“SUBMENU1”);
mi1=new MenuItem(“Item1”);
mi2=new MenuItem(“Item2”);
mi3=new MenuItem(“Item3”);
mi4=new MenuItem(“Item4”);
mi5=new MenuItem(“Item5”);
M1.add(mi1);
M1.add(mi2);
M1.add(mi3);
sm1.add(mi4);
sm1.add(mi5);
M1.add(sm1);
mb.add(M1);
setMenuBar(mb);
setSize(300,300);
setLocation(100,100);
setVisible(true);
}

public static void main(String ar[]){
Frame14 f2=new Frame14();
}
}
//——————————————————————————-
import java.awt.*;
import java.awt.event.*;
public class Frame15 extends Frame implements ActionListener{
MenuBar mb;
Menu M1,sm1;
MenuItem mi1,mi2,mi3,mi4,mi5;
Frame15(){
mb=new MenuBar();
M1=new Menu(“MENU1”);
sm1=new Menu(“SUBMENU1”);
mi1=new MenuItem(“Item1”);
mi2=new MenuItem(“Item2”);
mi3=new MenuItem(“Item3”);
mi4=new MenuItem(“Item4”);
mi5=new MenuItem(“Item5”);
mi1.addActionListener(this);
M1.add(mi1);
M1.add(mi2);
M1.add(mi3);
sm1.add(mi4);
sm1.add(mi5);
M1.add(sm1);
mb.add(M1);
setMenuBar(mb);
setSize(300,300);
setLocation(100,100);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
Frame14 f=new Frame14();
}
public static void main(String ar[]){
Frame15 f2=new Frame15();
}
}

Nov

14

import java.awt.*;

public class Frame1 extends Frame{
Button b1,b2;
Frame1(){
b1=new Button(“Submit1”);
b2=new Button(“Submit2”);
add(b1,BorderLayout.NORTH);
add(b2,BorderLayout.SOUTH);
setSize(200,200);
setVisible(true);
}
public static void main(String ar[]){
Frame1 f1=new Frame1();
}
}
//———————————————————————-
import java.awt.*;

public class Frame2 extends Frame{
Button b1,b2;
Frame2(){
setLayout(new FlowLayout());
b1=new Button(“Submit1”);
b2=new Button(“Submit2”);
add(b1);
add(b2);
setSize(200,200);
setVisible(true);
}
public static void main(String ar[]){
Frame2 f2=new Frame2();
}
}
//——————————————————————
import java.awt.*;
import java.awt.event.*;
public class Frame3 extends Frame implements ActionListener{
Button b1,b2;
Frame3(){
setLayout(null);
b1=new Button(“RED”);
b2=new Button(“YELLOW”);
b1.setBounds(30,30,150,50);
b2.setBounds(30,90,150,50);
b1.addActionListener(this);
b2.addActionListener(this);
add(b1);
add(b2);
setSize(200,200);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
if(e.getSource()==b1)
setBackground(Color.red);
if(e.getSource()==b2)
setBackground(Color.yellow);
}
public static void main(String ar[]){
Frame3 f2=new Frame3();
}
}
//———————————————————————–
import java.awt.*;
import java.awt.event.*;
public class Frame4 extends Frame implements ActionListener{
Button b1,b2;
Frame4(){
setLayout(null);
b1=new Button(“RED”);
b2=new Button(“YELLOW”);
b1.setBounds(30,30,150,50);
b2.setBounds(30,90,150,50);
b1.addActionListener(new aa());
b2.addActionListener(this);
add(b1);
add(b2);
setSize(200,200);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
if(e.getSource()==b1)
setBackground(Color.red);
if(e.getSource()==b2)
setBackground(Color.yellow);
}
public static void main(String ar[]){
Frame4 f2=new Frame4();
}
}
class aa implements ActionListener{
public void actionPerformed(ActionEvent e){
System.out.println(“from aa”);
setBackground(Color.red);
}
}
//——————————————————————–
import java.awt.*;
import java.awt.event.*;
public class Frame5 extends Frame implements ActionListener{
Button b1,b2;
Frame5(){
setLayout(null);
b1=new Button(“RED”);
b2=new Button(“YELLOW”);
b1.setBounds(30,30,150,50);
b2.setBounds(30,90,150,50);
b1.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
setBackground(Color.red);
}
});
b2.addActionListener(this);
add(b1);
add(b2);
setSize(200,200);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
setBackground(Color.yellow);
}
public static void main(String ar[]){
Frame5 f2=new Frame5();
}
}
//—————————————————————–

import java.awt.*;
import java.awt.event.*;
public class Frame6 extends Frame implements WindowListener{
Frame6(){
addWindowListener(this);
setSize(200,200);
setVisible(true);
}
public void windowActivated(WindowEvent e){
System.out.println(“windowActivated”);
}
public void windowDeactivated(WindowEvent e){
System.out.println(“windowDeactivated”);
}
public void windowClosed(WindowEvent e){
System.out.println(“windowClosed”);
}
public void windowClosing(WindowEvent e){
System.out.println(“windowClosing”);
System.exit(0);
}
public void windowOpened(WindowEvent e){
System.out.println(“windowOpened”);
}
public void windowIconified(WindowEvent e){
System.out.println(“windowIconified”);
}
public void windowDeiconified(WindowEvent e){
System.out.println(“windowDeiconified”);
}
public static void main(String ar[]){
Frame6 f2=new Frame6();
}
}
//———————————————————-
import java.awt.*;
import java.awt.event.*;
public class Frame7 extends Frame implements WindowListener,ActionListener{
TextField tf1;
Label l1;
Frame7(){
tf1=new TextField();
l1=new Label();
setLayout(null);
addWindowListener(this);
tf1.setBounds(20,50,100,20);
l1.setBounds(20,100,100,20);
tf1.addActionListener(this);
add(tf1);
add(l1);
setSize(200,200);
setVisible(true);
}
public void actionPerformed(ActionEvent e){
String s=tf1.getText();
l1.setText(s);
}
public void windowActivated(WindowEvent e){
System.out.println(“windowActivated”);
}
public void windowDeactivated(WindowEvent e){
System.out.println(“windowDeactivated”);
}
public void windowClosed(WindowEvent e){
System.out.println(“windowClosed”);
}
public void windowClosing(WindowEvent e){
System.out.println(“windowClosing”);
System.exit(0);
}
public void windowOpened(WindowEvent e){
System.out.println(“windowOpened”);
}
public void windowIconified(WindowEvent e){
System.out.println(“windowIconified”);
}
public void windowDeiconified(WindowEvent e){
System.out.println(“windowDeiconified”);
}
public static void main(String ar[]){
Frame7 f2=new Frame7();
}
}
//————————————————–

Nov

14

import java.applet.*;
/*
<applet code=”App.class” width=”200″ height=”200″>
</applet>
*/
public class App extends Applet{
public void start(){
System.out.println(“start()”);
}
public void init(){
System.out.println(“init()”);
}
public void stop(){
System.out.println(“stop()”);
}
public void paint(Graphics g){
System.out.println(“paint(Graphics)”);
}
public void destroy(){
System.out.println(“destroy()”);
}
}
//——————————————————————-
import java.applet.*;
import java.awt.*;
/*
<applet code=”App2.class” width=”200″ height=”200″>
</applet>
*/
public class App2 extends Applet{
public void start(){
System.out.println(“start()”);
}
public void init(){
System.out.println(“init()”);
}
public void stop(){
System.out.println(“stop()”);
}
public void paint(Graphics g){
System.out.println(“paint(Graphics)”);
}
public void destroy(){
//start();
System.out.println(“destroy()”);
}
}
//————————————————————————–
import java.applet.*;
import java.awt.*;

public class App3 extends Applet{

public void init(){
setBackground(Color.yellow);
setForeground(new Color(250,100,200));
}
public void paint(Graphics g){
g.drawString(“HELLO”,100,20);
g.setColor(Color.red);
g.setFont(new Font(“Comic sans ms”,Font.BOLD,40));
g.drawString(“HELLO”,100,50);
g.drawOval(20,20,100,100);//x,y,w,h
g.fillOval(30,40,10,10);
g.fillOval(60,40,10,10);
g.drawLine(60,80,90,80);
g.drawRect(60,120,90,50);
g.fillRect(60,150,40,40);
}
}
//———————————————————————

import java.applet.*;
import java.awt.*;
/*
<applet code=”App4.class” width=”500″ height=”500″>
</applet>

*/
public class App4 extends Applet{

public void init(){
setBackground(Color.yellow);
setForeground(new Color(250,100,200));
}
int i=1;
public void paint(Graphics g){
g.drawString(“HELLO”,100,20);
if(i%2==0)
g.setColor(Color.red);
else
g.setColor(Color.yellow);
g.setFont(new Font(“Comic sans ms”,Font.BOLD,40));
g.drawString(“HELLO”,100,50);
g.drawOval(20,20,100,100);//x,y,w,h
g.fillOval(30,40,10,10);
g.fillOval(60,40,10,10);
g.drawLine(60,80,90,80);
g.drawRect(60,120,90,50);
g.fillRect(60,150,40,40);
try{
Thread.sleep(200);
}catch(InterruptedException e){
}
i++;
repaint();
}
}
//——————————————————————
import java.applet.*;
import java.awt.*;
/*
<applet code=”App5.class” width=”500″ height=”500″></applet>
*/
public class App5 extends Applet{

public void init(){
setBackground(Color.yellow);
setForeground(new Color(250,100,200));
}
int x=20,t=1;
int f;
public void paint(Graphics g){
g.setColor(Color.red);
g.fillOval(x,20,50,50);
try{
Thread.sleep(10);
}catch(InterruptedException e){
}
if(x==450)
t=-1*t;
x=x+t;
if(x==20)
t=-1*t;
/*if(x==450){
f=1;
}
if(f==0)
x++;
else
x–;*/
repaint();
}
}
//——————————————————————
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
<applet code=”App6.class” width=”500″ height=”200″></applet>
*/
public class App6 extends Applet implements MouseListener{

public void init(){
setBackground(Color.yellow);
addMouseListener(this);
}
public void mouseClicked(MouseEvent e){
System.out.println(“mouseClicked”);
}
public void mousePressed(MouseEvent e){
System.out.println(“mousePressed”);
}
public void mouseReleased(MouseEvent e){
System.out.println(“mouseReleased”);
}
public void mouseEntered(MouseEvent e){
System.out.println(“mouseEntered”);
}
public void mouseExited(MouseEvent e){
System.out.println(“mouseExited”);
}
}
//———————————————————————–
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
<applet code=”App7.class” width=”500″ height=”200″></applet>
*/
public class App7 extends Applet implements MouseListener{

public void init(){
setBackground(Color.yellow);
addMouseListener(this);
}
public void mouseClicked(MouseEvent e){
System.out.println(“mouseClicked”);
}
public void mousePressed(MouseEvent e){
System.out.println(“mousePressed”);
//showStatus(“Pressed”);
showStatus(e.getX()+” , “+e.getY());
}
public void mouseReleased(MouseEvent e){
System.out.println(“mouseReleased”);
}
public void mouseEntered(MouseEvent e){
System.out.println(“mouseEntered”);
}
public void mouseExited(MouseEvent e){
System.out.println(“mouseExited”);
}
}
//——————————————————————
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
<applet code=”App8.class” width=”500″ height=”200″></applet>
*/
public class App8 extends Applet implements MouseListener,MouseMotionListener{

public void init(){
setBackground(Color.yellow);
addMouseListener(this);
addMouseMotionListener(this);
}
public void mouseClicked(MouseEvent e){
System.out.println(“mouseClicked”);
}
public void mouseDragged(MouseEvent e){
System.out.println(“mouseDragged”);
}
public void mouseMoved(MouseEvent e){
System.out.println(“mouseMoved”);
showStatus(e.getX()+” , “+e.getY());
}

public void mousePressed(MouseEvent e){
System.out.println(“mousePressed”);
//showStatus(“Pressed”);
}
public void mouseReleased(MouseEvent e){
System.out.println(“mouseReleased”);
}
public void mouseEntered(MouseEvent e){
System.out.println(“mouseEntered”);
}
public void mouseExited(MouseEvent e){
System.out.println(“mouseExited”);
}
}
//———————————————————————
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
<applet code=”App9.class” width=”500″ height=”200″></applet>
*/
public class App9 extends Applet implements MouseListener,MouseMotionListener{
int x=0,y=0;
public void paint(Graphics g){
g.fillOval(x,y,50,50);
}
public void init(){
setBackground(Color.yellow);
addMouseListener(this);
addMouseMotionListener(this);
}
public void mouseClicked(MouseEvent e){
System.out.println(“mouseClicked”);
x=e.getX();
y=e.getY();
repaint();
}
public void mouseDragged(MouseEvent e){
System.out.println(“mouseDragged”);
}
public void mouseMoved(MouseEvent e){

}

public void mousePressed(MouseEvent e){
System.out.println(“mousePressed”);
//showStatus(“Pressed”);
}
public void mouseReleased(MouseEvent e){
System.out.println(“mouseReleased”);
}
public void mouseEntered(MouseEvent e){
System.out.println(“mouseEntered”);
}
public void mouseExited(MouseEvent e){
System.out.println(“mouseExited”);
}
}