Search found 1 match

by mjahan
Sat Aug 04, 2007 6:38 am
Forum: Java
Topic: Why this code generate compile time error?
Replies: 2
Views: 5354

Why this code generate compile time error?

why the following code generate compile time error?

import java.util.*;

public class hasmat
{
public static void main(String args[])
{
long a, b=9;

Scanner test = new Scanner(System.in);

while(test.hasNextLong())
{
a= test.nextLong();

if(test.hasNextLong())
b= test.nextLong ...

Go to advanced search