quarta-feira, 3 de junho de 2009

Java: System.properties

Different Operating Systems usually require a different syntax. A good example is the file separator char, the line separator or the path separator.

In order not to hard code these values on your source code there's the System.getProperty(String str) static method that receives a String and returns the desired property.

Take a look at http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html for further information.

Sem comentários:

Enviar um comentário