fork download
  1. public class DatabaseHelper extends SQLiteOpenHelper implements Closeable {
  2.  
  3. protected static Context mContext;
  4.  
  5. public static DatabaseHelper getInstance() {
  6. return LazyHolder.INSTANCE;
  7. }
  8.  
  9.  
  10. private static class LazyHolder {
  11. private static final DatabaseHelper INSTANCE = new DatabaseHelper(mContext);
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class DatabaseHelper is public, should be declared in a file named DatabaseHelper.java
public class DatabaseHelper extends SQLiteOpenHelper implements Closeable {
       ^
Main.java:1: error: cannot find symbol
public class DatabaseHelper extends SQLiteOpenHelper implements Closeable {
                                    ^
  symbol: class SQLiteOpenHelper
Main.java:1: error: cannot find symbol
public class DatabaseHelper extends SQLiteOpenHelper implements Closeable {
                                                                ^
  symbol: class Closeable
Main.java:3: error: cannot find symbol
    protected static Context mContext;
                     ^
  symbol:   class Context
  location: class DatabaseHelper
4 errors
stdout
Standard output is empty