473,698 Members | 2,376 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 1633
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
1523
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 follows: I am passing to it an object of Luxury
5
10159
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
1709
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
1313
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
6433
kaleeswaran
by: kaleeswaran | last post by:
what is difference between -BufferedReader and InputStreamReader.. which one is efficent?..
6
2285
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 for each choices. But the compiler showed that we can't used function in static void. Is there...
9
2016
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 the code try {
1
1799
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
3112
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 DataOutputStream(new FileOutputStream(dataB)); FileOutputStream midman = new FileOutputStream(dataB);
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9029
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
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
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.