|
-
BufferedReader
Ok. Here is my code. I need to know why i keep getting the same error message.
The error message is also posted.
import java.io.*;
public class more{
public static void main(String [] args){
BufferedReader a = new BufferedReader (new
InputStreamReader (System.a));
String oneline;
int countline;
int countcol;
countcol = 0;
try{
while ((oneline = a.readline() ) != null){
oneline = a.readLine();
System.out.println(oneline);
if (countcol >= 80){
System.out.println(" ");
countline =+ 1;
if (countline == 20){
break;
}
}
}
}
catch( Exception e )
{ System.out.println(e);}
}
}
Error...
more.java:6: No variable a defined in class java.lang.System.
InputStreamReader (System.a));
^
more.java:13: Method readline() not found in class java.io.BufferedReader.
while ((oneline = a.readline() ) != null){
^
please help!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks