Answer the question
In order to leave comments, you need to log in
How to make a query in SQLite according to the random number and percentage method?
I am writing a program in JAVAFX and Scene Builder. database - SQLite. I use DB Browser to browse the database
In SQlite there are two tables: "category1" and "sentences"
In the table "category1" there are 3 columns: "ID" , "question" and "answer". that is, a table with questions and answers.
There are two columns in the "sentences" table: "ID" , "sentence"
In the Controller class there are two texaria fields where you want to display the text when the button is clicked.
@FXML private TextArea ta_questText, ta_answerText;
@FXML private Button btnRand;
@FXML void randomCard(ActionEvent event) {
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question