Char « Boolean « Java Data Type Q&A

1. Java: Replacing Boolean with a Char

Thank you for reading, essentially I have a matrix of Boolean values and to print them I am using:

for (int r = 0; r < matrix.length; r++) {

2. "boolean isDigit(char ch)" not working...please help

import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.JLabel; public class Risk extends JPanel { int leftNumber = 0; int rightNumber = 0; public JButton enter; public JTextField stupid, yummy; public JLabel smart, dumb; public Risk() { JLabel smart = new JLabel("First Number:"); add(smart); JTextField stupid = new JTextField(10); add(stupid); JLabel dumb = new JLabel("Second Number:"); add(dumb); JTextField yummy = new JTextField(10); ...

3. cannot convert from char to boolean