473,566 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InputStreamRead er

65 New Member
is it possible to read values from Standard input
without using InputStreamRead er ?
Aug 21 '07 #1
1 1625
r035198x
13,262 MVP
is it possible to read values from Standard input
without using InputStreamRead er ?
This is probably one of those trick questions right?
I'd say java treats the standard input as an InputStream so you're stuck with it. However, you can wrap that input sream into more friendlier classes like BufferedReader and most importantly into the Scanner class.
Aug 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1521
by: the one | last post by:
Hello. I have two errors that I have been unable to resolve. Any suggestions are greatly appreciated. We are to create an abstract class called Auto which has two subclasses Sport and Luxury. Sport has two additional subclasses called fourCyl and EightCyl. I am attempting to add these cars to my garage.java. My add function is as...
5
10152
by: Alligator | last post by:
And more specifically what is the difference between an InputStream and a BufferedInputStream? When should I use one and when should I use the other? And why is there besides a BufferedInputStream also a Buffered Reader? Should one use ?? : InputStreamReader r = new InputStreamReader( blabla.getInputStream()); or
5
1691
by: dmvsatyakumar | last post by:
I Have a file name.txt. Below is the format of names.txt. 1 SATYA; 2 KUMAR; 3 MOHAN; 4 Venkat; In my java code i get an integer(say 3). With that integer(3) i should pick the corresponding name from the names.txt and display on the screen.
8
1306
JavaStudent07
by: JavaStudent07 | last post by:
I had an assignment, on the command prompt, enter a filename of a previously formed program and print it out with numbered lines IE* 1 public ********* 2 { 3 Code 4 } ETC.
1
6423
kaleeswaran
by: kaleeswaran | last post by:
what is difference between -BufferedReader and InputStreamReader.. which one is efficent?..
6
2275
crystal2005
by: crystal2005 | last post by:
Hello guys, I'm a beginner in Java application programming. I started to write a Java application in which link to MS Access database. I encountered a problem in deletion function. E.g. I would like to delete one record in database, it always shows "record not found" in my program, even if the data has been deleted. I tried to used function...
9
2013
by: maas | last post by:
Hello I have a problem when coding the statement stmt.execute("insert into Member values ("+mname+" ,"+mail+","+tel+")"); where mname, mail,tel are variables which the user inputs them and stored in variables and then i want them to be stored in MS Access, everything is done successfully until it reached the previous statement Here is...
1
1794
by: maas | last post by:
hello i have a problem in the do while loop where the program will ask the user to enter yes and do an iteration, nut in my example it did not do?? here is the code import java.sql.*; import java.io.*; public class Project3A {
4
3104
by: Asylus | last post by:
Thank you in advance for any help you may be able to provide. I am trying to create a file using DataOutputStream. I'm using the following code to write the file: public static void rewriteFile(String artistAlbum) throws IOException { System.out.println("Writing file: " + dataB); DataOutputStream outputStream = new...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.