By Oleg Mazurashu,on March 25th,2010% The System class maintains a Properties object that describes the configuration of the current working environment. System properties include information about the current user,the current version of the Java runtime,and the character used to separate components of a file path name. In this post I am going to show simple example which shows . . . →Read More:Using system properties in Java By Oleg Mazurashu,on March 25th,2010% I am going to demonstrate example which shows how to get environment variables from Java code import java.io.IOException;import java.util.Map;public class Main{public static void main(String[] args) throws IOException . . . →Read More:Getting system environment variables in Java By Oleg Mazurashu,on March 25th,2010% Java has great API for working with properties. In this post I am going to show example which shows how to work with properties with Properties class. In my work I very often use properties and xml files for configuration. Example will show how to load properties from property file,how to read them,how . . . →Read More:Using Properties in Java By Oleg Mazurashu,on November 30th,2009% I don’t understand why I can’t keep in mind these simple methods. Last months I used them very often,these methods are very useful.Today I had simple task and I searched in the internet these methods because I couldn’t recollect them. I am going to show simple example where I will use these methods. After . . . →Read More:Converting array to list and list to array in Java By Oleg Mazurashu,on November 17th,2009% I found some problem when I tried to compare date/time in Java. Yes,I know that need to use compareTo(Calendar anotherCalendar) method. But problem I found in initialization side. I spent some time and found the solution. I initialize Calendar object with method getInstance(),it is correct way,but this method initialize date till millisecond. Here . . . →Read More:Comparing Date/Time in Java By Oleg Mazurashu,on October 25th,2009% I am going to show example which shows how to rename file or directory in Java. . . . →Read More:Renaming file or directory in Java By Oleg Mazurashu,on October 24th,2009% In Wallpaper Changer application version 1.2.* we added feature which allows to move file in application’s file manager. I want to show how we did it. As you see this post refer to core Java not Android. That’s why I will post code with method main. . . . →Read More:Moving file or directory to other directory in Java By Oleg Mazurashu,on October 18th,2009% In Java is very easy to use timer for scheduling some job. There are a lot of other libs which you can use for scheduling,but Java has own approach for simple job schedulling. . . . →Read More:Scheduling a timer task to run repeatedly in Java By Oleg Mazurashu,on October 15th,2009% What need to do when you want to filter files by extensions in directory? There are 2 ways: implement FileFilter or FilenameFilter. I am going to show how to do this with FileFilter. . . . →Read More:Using FileFilter in Java By Oleg Mazurashu,on October 13th,2009% Several days ago we modified looks of our file manager in Wallpaper Changer application. In first version we used simple sort without Comparator or Comparable interfaces. . . . →Read More:Sorting directories and files in Java | A sample text widgetEtiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa. Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna. | "If people do not believe that architecture is simple,it is only because they do not realize how complicated life is." - J.H. von Neumann |
Recent Comments