Search found 1 match

by me_br
Sun Feb 15, 2009 6:18 pm
Forum: Volume 110 (11000-11099)
Topic: 11057 - Exact Sum
Replies: 50
Views: 30920

Re: 11057 - Exact Sum

Does anyone see in the code below why I'm receiving Runtime Error?


import java.util.Arrays;
import java.util.Scanner;

public class Main {

public static void main(String args[]){
Scanner in = new Scanner(System.in);

String s;
while((s = in.nextLine()) != null) {
if(s.equals("\n") || s ...

Go to advanced search