Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Connect with professionals ready to provide precise answers to your questions on our comprehensive Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

Write an application that prompts a user for two integers and displays every integer between them. Display There are no integers between X and Y if there are no integers between the entered values. Make sure the program works regardless of which entered value is larger. in java.


import java.util.Scanner;
public class Inbetween {
public static void main (String args[]) {
// Write your code here
}
}