Guest User

Untitled

a guest
Dec 22nd, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. // PunktTest.java
  2.  
  3. import javax.swing.*;
  4.  
  5. public class PunktTest {
  6. //!    public void main(String[] args) {
  7.     public static void main(String[] args) {
  8.         double x = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
  9.         double y = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
  10.         Punkt p = new Punkt(x, y);
  11.         double a = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
  12.         double b = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
  13. //!        JOptionPane.showMessageDialog(null, "Przesuniecie" + przesuniecie(a,b));
  14.         JOptionPane.showMessageDialog(null, "Przesuniecie" + p.przesuniecie(a,b));
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment