Answer Posted / 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 |
Post New Answer View All Answers
What will be the output of round(3.7) and ceil(3.7)?
What are the advantages of java over cpp?
What is the structure of java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What is the purpose of return statement?
What is percentage in java?
Why do we need hashmap in java?
What is the properties class?
What is charat java?
Can you write a java class that could be used both as an applet as well as an application?
What is a finally block? Is there a case when finally will not execute?
What does math floor () do?
Is null a string or object in java?
Explain when we should make an instance variable private.
How do I compare two strings in word in java?