Close file handler in java while operating on files
I just bumped into one of the error with file io. if you dont close fie handler, it wont write anything into file.
Executing external process using java
Runtime rt=Runtime.getRuntime(); Process x= rt.exec("ls -l"); BufferedReader stdInput = new BufferedReader(new InputStreamReader(x.getInputStream())); String s; while ((s = stdInput.readLine()) != null) { System.out.println(s); }
Adding new elements to arraylist in java while using iterator
Today i had a problem with usage of arraylist along side of iterator. the problem was that i was unable to add elements to the arraylist. it gives you an error java.util.ConcurrentModificationException this is because u cant add elements to an arraylist while using an iterator. so i had used listiterator as below.
sql query to find data between an interval.. something like getting data for each week
SELECT MAX( STR_TO_DATE( CONVERT(
PurchaseDt
scala (new programming language)
data types
adding users in ubuntu
sudo useradd -d /home/testuser -m testuser
installing mysql
sudo apt-get install mysql-server
mummer
url: http://sourceforge.net/projects/mummer/files/ Download MUMmer3.22.tar.gz
esprit
ESPRIT :: Installation :: Cluster Obtain the source code
ruby on rails
http://www.techrepublic.com/blog/programming-and-development/learn-ruby-with-these-10-books-and-other-resources/3886?tag=nl.e108