Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PunktTest.java
- import javax.swing.*;
- public class PunktTest {
- //! public void main(String[] args) {
- public static void main(String[] args) {
- double x = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
- double y = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
- Punkt p = new Punkt(x, y);
- double a = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
- double b = Double.parseDouble(JOptionPane.showInputDialog(null,"a"));
- //! JOptionPane.showMessageDialog(null, "Przesuniecie" + przesuniecie(a,b));
- JOptionPane.showMessageDialog(null, "Przesuniecie" + p.przesuniecie(a,b));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment