Category: Programming

The name-separator character in Java

Java was born as a platform-independent programming language. Some features that grant the platform independence are achieved using the APIs of the language itself. For example, to construct a filename path, you can use the public static field separator of the java.io.File class.

Example:

String path = java.io.File.separator + "foldername" + java.io.File.separator + "filename";

This produces the string /foldername/filename under Unix-like systems and \foldername\filename under Windows systems.

Read more...

Hello world!

Welcome to my blog. This is my first post. About myself: My name is Alessandro Lacava and I am a software engineer. I love designing and developing software. So, as you may have guessed, my blog is going to mainly contain articles, techniques, tips & tricks and much more about computer programming. Stay tuned.

Read more...