Demo entry 6737206

Funkce vracející všechny nápovědy v databázi

   

Submitted by anonymous on Apr 29, 2018 at 23:50
Language: Java. Code size: 374 Bytes.

  public List<String> getHints() {
        List<String> list = new ArrayList<>();
        Cursor cursor = database.rawQuery("SELECT label FROM hints", null);
        cursor.moveToFirst();
        while (!cursor.isAfterLast()) {
            list.add(cursor.getString(0));
            cursor.moveToNext();
        }
        cursor.close();
        return list;
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).