I want read a text file and output to another text file
This is my code
FileInputStream s = new FileInputStream(fileName);
DataInputStream dis = new DataInputStream(s);
InputStreamRea...
Hi,
I have a string of unknown length, and i'm looking for a function that will remove the last character of it.
Like:
String example = "John";
example.removeLast();
example is now ...
CATALINA_HOME=C:\JavaTomcatServer\tomcat6014\bin
CLASSPATH=.;C:\Program Files\Java\jre1.6.0_02\lib\ext\QTJava.zip
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Utpal Mattoo
JAVA_HOME=C:\Pr...
Hi ,
I am running into the warning "sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release " whenever I compile my code.Is there any other alternative API for...
When should a method be static and when should it be non static.
Can someone explain this with real world examples ?
Convert excel file to tab-delimited file. like what the MS EXCEL does when you have open an excel file with combination of charts and text and trying to convert it into .txt file by File>Save ...
hi
I don't now how to write in file line by line.
what are the new features that jave been added for jdk1.5 & jdk1.6 when compare to jdk1.4
Hey guys,
Quick question:
Is there a way to easily perform math operations in Java? That is, some library or package that will let one do cosine, sine, exponentials, etc.
Thanks!
I need websites like codeproject, sourceforge to find sample and simple projects. for Microsoft technologies I got many sites but could not find any for java especially console applications.
...
I am working with an applet that requires Java 1.5.0 (build .5.0_07-b03).
Supposedly, I need the Java Plug in Control Panel but I do not see that shown in start->Control panel. All I see is...
i need the easiest way
and i mean the easiest way
of setting the java environment variables in Ubuntu
i am a total newbie on both
i can't use the edit commands in the terminal
its too...
Hi Experts,
I've just started learning JAVA! I'm about 30minutes into it and already I seek the advice of all you experts. My Java handbook instructed me to download and install the JDK (...
I have a simple java program reading a name of type string from the database.
If the string contains 2 spaces between the first name and the second name I want to remove one of these spaces. ...
Hi,
How can I delete a verison from cvs using eclipse?
Thanks
I am needing assistance with the below Java code. I am doing a hangman sort of game where the user guess a character, that character is checked against the chosen word and then displays the ch...
Hi,
Can you please advise how do I read the specific values from my properties file.
My properties file uni.properties contains the following parameters
country.state=01,20,50,72
pro...
Hi
I am trying to work out the difference between two times, I need the format to be in minutes:seconds, i.e 02:34.
Here is how I am obtaining the time for the start/end
Calendar th...
I want to know how I can use
XMLWriter from apache
http://commons.apache.org/sandbox/xmlio/apidocs/org/apache/commons/xmlio/out/XMLWriter.html
I do I start an object and build an XML...
hi,
i plough through the whole net but still dont get it. how do insert new data into an existing xml file?
<mail>
<message id="1">
<content>lalalala</content>
</message...
Hi,
I am trying to remove duplicate lines from a text file. To make things difficult the lines contain non unique timestamps but a unique reference number. Some of the duplicates amount to ...
public class Test{
public static void main(String [] args){
Object ref = new Object();
abc ref = new abc();
ref.actionPerformed(2);
}
}
class abc{
...
Is it possible to get the out of a CMD command into a java string variable. This is what I have,
import java.io.*;
public class dos_cmd_test
{public static void main(String args[]) throws I...
Hi Experts
Using Eclipse and getting this error Syntax error on token "(", ; expected on line 59 it's the one with the main method on it.
It is saying something about the brackets not b...
Hi all!
I would like to know how to format a string to a pattern in Java. The input String is looking like "xxxxxx" and the formated String must look like "xxxxx x" with a space between the...