Questions tagged [inputstreamreader]
216 questions
-2
votes
1 answer
get csv file from jar
I have the following line of code:
InputStreamReader isr = new InputStreamReader(MethodHandles.lookup().lookupClass().getResourceAsStream(csvFile));
could someone explain to a newbe:
MethodHandles.lookup()
lookupClass()
getResourceasStream()
the…

DCR
- 14,737
- 12
- 52
- 115
-2
votes
3 answers
Whats wrong with InputStreamReader here?
I have created a Java Shopping Cart App. I have used InputStreamReader class for it. But its showing strange behavoiur. I have already tried Scanner class and Data Input Stream class. But they they do not seem to be fit for this app.
Can anyone…

SHACHINDRA TRIPATHI
- 77
- 1
- 19
-2
votes
2 answers
System.in for C#?
I am coding a BufferedReader in Unity3D with a C# file. When ever I use this line of code it says there is an error of: "Parser Error:Identifier expectied, "in" is a keyword" , but when this code is run in Java there is not an error. Why doesn't…

Joel Butenhoff
- 39
- 5
-2
votes
1 answer
setting up AsyncTask with a InputStreamReader - Android
I have completely forgotten how I set this up before on a different IDE and I lost the files from that. How do you setup this code to make it run. I need to put a try{ and a catch but where and how? Thanks for helping.
class UpdateText extends…

ThePoloDoc
- 340
- 9
- 23
-4
votes
2 answers
How can I remove all characters after the first instance of a tab?
I have a large text file, around 200,000 lines of word translations. I want to keep the translated text, which appears after the tab.
abaxial van osovine
abbacy opatstvo
abbaino kora
abbatial opatski
abbe opat
abbé opat
abbé …

Martin Erlic
- 5,467
- 22
- 81
- 153
-5
votes
3 answers
Java Input from console giving unexpected values
In the given code,
Input: 1 7
Output: 1
Output should be 7. What am I missing??
import java.io.*;
import java.util.*;
class compiler
{
public static void main(String args[] ) throws Exception
{
BufferedReader br = new…

Rajdeep Siddhapura
- 873
- 1
- 7
- 20