title: Java simpe Mysql query
body: <p>I'm trying to make a simple Mysql SELECT query </p>
  
  <p>Here is my code : </p>
  
  <pre><code>public Highscore[] load_localscores() {
          // load preferences
          SharedPreferences hiscores = PreferenceManager.getDefaultSharedPreferences(screen.getApplicationContext());
          Highscore highscore[] = new Highscore[highscore_number];
  
          for (int i = 0; i &lt; highscore_number; i++) {
              highscore[i] = new Highscore();
              highscore[i].highscore = HERE_SELECTED_MYSQL_DATA;
              highscore[i].hiscorename = HERE_SELECTED_MYSQL_DATA;
          }
  return highscore;
  </code></pre>
  
  <p>In Mysql database i have two fields Hightscore.name and Hightscore.score</p>
  
  <p>I want to select data from my table to HERE_SELECTED_MYSQL_DATA</p>
  
  <p>i apologize i'm not so familiar with JAVA.</p>