I'm making a program in java that will use a string array say:
String[] category = new String[46];
Then I will check if the array in a for loop if it already has a value,
for(int checking = 21; checking <= 45 ;checking++) {
if(category[checking]=INSERT_HERE) {
textArea += category[checking] + "\n";
}
}
What do I put in INSERT_HERE? Note: textArea is a named JTextArea.
null, so check if it is not that.if(category[checking] != null).if(category[checking]!=null)