Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package com.javarush.task.task23.task2303;
  2.  
  3. /*
  4. Запрети создание экземпляров класса
  5. */
  6. public class Solution {
  7.  
  8. public abstract static class Listener {
  9. public void onMouseDown(int x, int y) {
  10. //do something on mouse down event
  11. }
  12.  
  13. public void onMouseUp(int x, int y) {
  14. //do something on mouse up event
  15. }
  16. }
  17.  
  18. public static void main(String[] args) {
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement