I have a problem while reading 3 integers in each line of which I don't know the number of. The problem I have is with the last line of integers. It simply refuses to print out and the program doesn't stop running. Here is my code:
Code:
import java.util.Scanner;
public class Restaurant {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int money