السلام عليكم
انا ادرس في الجامعه ومعي هذا الفصل لغه جافا واود انا استفسر عن اجابه هذا السؤال
1- ما هو ناتج نتفيذ المقطع التالي:
int i; int j;
outer:
for(i=1;i<3;i++){
inner:
for(j=j;j<3;j++)
if(j==2){continue outer;}
System.out.println("i="+i+",j="+j);
} }
2-ما هو ناتج تنفيذ القطع التالي:
String copyForm="Copy this string until you reach the letter 'a'.";
StringBuffer copyTo=new StringBuffer();
int i=0; char c=copyForm.charAt(i);
do{
copyForm.charAt(++i);
}
while(c!='a');
System.out.println(copyTo);
