Users Pricing

forum

Home Forums How to convert string to char array using java – MindStick

How to convert string to char array using java

Anonymous User 2802 14 Oct 2013

Is there a way in which a string "hello" can be changed into a 'hello' in java (android)?? This is to make my SQL query work. For example

public Cursor GetLecture(String course_code)

{
    SQLiteDatabase sqldb = this.getReadableDatabase();
    String query = "SELECT * FROM Lecture WHERE course_code =" + course_code;
    Cursor C = sqldb.rawQuery(query, null);
    return C;
}




1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md