Improved demo display.

This commit is contained in:
Christian P. MOMON 2017-04-26 09:27:23 +02:00
parent 020df07995
commit 8bedd19e84

View file

@ -58,6 +58,7 @@ public final class SikevaDBDemo
SikevaDB database = null;
try
{
//
File homeDirectory = new File("/tmp/footest");
database = SikevaDBFactory.get(homeDirectory);
@ -127,8 +128,8 @@ public final class SikevaDBDemo
}
//
System.out.println("Database values:\t" + database.countOfElements());
System.out.println("Database memory:\t" + database.memorySize() + " bytes");
System.out.println(String.format("Database values:\t %d elements", database.countOfElements()));
System.out.println(String.format("Database memory:\t %d bytes", database.memorySize()));
//
database.close();