Examlex

Solved

Consider the Following Code Snippet

question 7

Multiple Choice

Consider the following code snippet:
Public class MyMouseListener implements MouseListener
{
Public void mousePressed(MouseEvent event)
{
Double x;
Double y;
_______
System.out.println("x: " + x + ", y: " + y) ;
}
) . .
}
Which of the following statements should be filled in the blank to print out where the mouse was pressed?


Definitions:

Related Questions