I have a string named text and I want to count the number of its characters.
But there is no method 'count' like in ObjC.
In the Internet I found the method 'length', which could be useful. But If I write:
private javax.swing.JTextField txtText; int counter = txtText.length();
the compiler complains: "cannot find the symbol"
I thought I need a framework to include, I am absolutely new in Java.