Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.mapdb;
 
 
 import org.junit.Test;
 
 
 public class Issue198Test {
 
     @Test public void main() {
        DB db = DBMaker.newFileDB(Utils.tempDbFile())
                .closeOnJvmShutdown()
                .randomAccessFileEnable()
                .make();
        BTreeMap<IntegerIntegermap = db.createTreeMap("testmap").makeOrGet();
        for(int i = 1; i <= 3000; ++i)
            map.put(ii);
        db.commit();
        db.close();
    }
New to GrepCode? Check out our FAQ X