I've got that as well, pretty annoying indeed!I haven't got the time yet to try and solve it myself though...
Ramses de Norre
https://bbs.archlinux.org/profile.php?id=10268
2013-01-12T14:36:53Z
public class Prod {
public static void main(String[] args) {
System.out.println(prod(1, 4));
}
public static int prod(int m, int n) {
if (m == n) {
return n;
} else {
int recurse = prod(m, n-1);
int result = n * recurse;
return result;
}
}
}
On running the above code , I get 24 ?
I don't quite underst
i've problem access other class in android...
i've class databasex (non static) and class CountingFragment (static)....
in CountingFragment i want to access databasex class..but i get result null....
here is my piece of code...
class Databasex
public class DataBasex {
public static final String KEY_ROWID="_id";
public static final String KEY_NAME="namaLokasi";
public static final
My application want to calculate the total sales in a month. I used sql statements sum. But when I run the application it fails. and I do not know why this error. expect people to help me fix this.
Here is the declaration in 'MainActivity.java'
private static String competition = null;
I've created a setter function which adds value to it.
public static void setCompetition(String competition1) {
competition = competition1;
}
I've created a getter function to get the value in another class from the same package:
public static String getCompetition() {
return competition;
}
Ho
Im a bit new to OOP so i want to know if im doing things correctly.
hello friends,
i am new to ubuntu.
I am trying to get db.update to update one of the rows of my database with new values but it does not seem to be saving. I have looked over my syntax but I cannot seem to get the data to save. The insert function is working but not update. Any help would be appreciated. Below is my data class which uses a DbHelper object.
i am developing application using sqlite databse having one table name comment that stores id , name, number and block.
now i get an error every time when i run the application that
sqlite returned: error code = 1, msg = no such column: ph_number
the code is below..
public class MySQLiteHelper extends SQLiteOpenHelper {
public static final String TABLE_COMMENTS = "comments";
public s