forum

Home / DeveloperSection / Forums / How to convert string to char array using java

How to convert string to char array using java

Anonymous User232514-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;
}




Updated on 14-Oct-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By