Search found 3 matches

by vickki
Thu Jan 13, 2011 8:31 am
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47352

119 problem Run Time Error Please Help Urgent !!!

Hi i recnetly started solving the problem Greedy Gift Givers but i am getting Runtime Error i dont know why ? I have tried almost all the inputs provide in the form please. Sorry for Creating another thread related to 119 :-?

Here is the my program
import java.io.BufferedReader;
import java.io ...
by vickki
Thu Nov 11, 2010 8:54 am
Forum: Volume 10 (1000-1099)
Topic: 1055 - Pockets
Replies: 3
Views: 6537

Re: First Java prog submission Compilation Error

Thanks MF this to help others well i also found out that scanning input Scanner sc = new Scanner(new File(args[0])) is not the right way. I got confused by the line in Input section which states Input is terminated by End of File ". Well for all other info if we do that we run into runtime error if ...
by vickki
Wed Nov 10, 2010 9:23 am
Forum: Volume 10 (1000-1099)
Topic: 1055 - Pockets
Replies: 3
Views: 6537

1055 - Pockets

Hi I am new to uva when ever i submit the java the code (problem no 1055)i get import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Scan_v3
{
public static void main(String args[])throws FileNotFoundException
{


Scanner sc = new Scanner(new File ...

Go to advanced search