if (numFac == 2 || numFac ==3){
jLabel3.setText("Prime!"); }
for ( i=3; i <=numFac; i++ ){
double n = numFac%i;
if (n==1 || n!=0){
jLabel3.setText("Prime!");
break; }
else {
jLabel2.setText("The Divisors of " +numFac +" are ");
for( i = 1; i <= numFac; i++)
{
if(numFac%i == 0)
{ jLabel3.setText(i+" "); }
}
}
我i
在jlabel3
. 我希望它像这样显示: System.out.print(i+" ");