Memorynotfound Java Programming Tutorials

java tutorials

Get Current Working Directory in Java

You can retrieve the current working directory by calling System.getProperty(“user.dir”). This returns the root folder of your current java project. Example package com.memorynotfound.file; import java.io.File; public class FindCurrentWorkingDirectory { public static void main(String… args){...
java tutorials

Find User Home Directory in Java

The System class maintains a Properties object that describes the configuration of the current working environment. Within these properties there exists one that identifies the users home directory. In most scenarios this will work,...
json tutorials

GSON Versioning Support with @Since Annotation

GSON introduced the @Since annotation to support multiple versions of the same object. We can use this annotation on Classes and Fields. In order to enable this feature we need to register a version...