title: Android Studio, Java and SQLite issue creating a database
body: <p>The issue im having is when I attempt to execute the query it doesn't have access to the execSQL part of the command, ive been stuck on this for around an hour.</p>
  
  <pre><code>package com.androstock.myweatherapp;
  
  import android.database.sqlite.SQLiteDatabase;
  
  import static android.database.sqlite.SQLiteDatabase.openOrCreateDatabase;
  
  public class Database {
      SQLiteDatabase mydatabase = openOrCreateDatabase("database.db", null);
  
      public void onCreate() {
          mydatabase.execSQL("CREATE TABLE IF NOT EXISTS TutorialsPoint(Username VARCHAR,Password VARCHAR);");
          mydatabase.execSQL("INSERT INTO TutorialsPoint VALUES('admin','admin');");
      }
  }    
  </code></pre>
  
  <p>If somebody would be able to shed some light on where im going wrong with this that would be great thanks in advance</p>