How can you take string into InputStream?
Answers were Sorted based on User's Feedback
Answer / sudhakar p
Step 1: Convert String to byte array
Step 2: Create a ByteArrayInputStream passing bytes[] to to
the contructor
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / himanshu gupta
String str="";
int i=0
InputStream in=new FileInputStream("File url");
while((i=in.read())!=-1)
{
str=str+(char)i;
}
System.out.println(str);
Is This Answer Correct ? | 1 Yes | 0 No |
How many types of design patterns are there?
what is synchronization? : Java thread
what is the major difference between linkedlist and arraylist in java?
What do you understand by overloading and overriding in java?
What does jenkins do?
What are predicates in java 8?
What is the lifetime and scope of a variable?
Define a package.
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
Is arraylist ordered in java?
what is difference between method overloading & method overridding with example?
Can you make a constructor final in Java?
0 Answers SwanSoft Technologies,