Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.math.*;
- public class Lesson_32_Activity_Three {
- static Scanner scanner = new Scanner(System.in);
- public static void swap(int input1, int input2) {
- System.out.println(input2 + " " + input1);
- }
- public static void main(String[] args) {
- System.out.println("What are the two integers?");
- int input1 = scanner.nextInt();
- int input2 = scanner.nextInt();
- swap(input1,input2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement