DanikYakush

Task42

Jul 12th, 2022 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. public class Task42 {
  2.  
  3.     public static void main(String[] args) {
  4.  
  5.         Test1 test = new Test1();
  6.         Scanner sc = new Scanner(System.in);
  7.  
  8.         System.out.println("some x1 = ");
  9.         test.setX1(sc.nextInt());
  10.        
  11.         System.out.println("some x2 = ");
  12.         test.setX2(sc.nextInt());
  13.        
  14.         test.printValues();
  15.         System.out.println(test.getBigger());
  16.        
  17.  
  18.     }
  19.  
  20. }
Add Comment
Please, Sign In to add comment