مرحبــــا ...أعضااء المنتدى الأعزااء
كثيرا مايتكرر هذا السؤاال لديtrace the program
لكني لم أفهمه :( ...كيف أحل trace للبرنامج..كيف أتتبع خطواته...
أتمنى أن يشرح لي أحدكم متفضلا بالتفصيل.. *-)
وعندي هنــا مثال للـ tracr the program
1. Trace the following program:
import javax.swing.JOptionPane;
public class Sheet8{
public static void main( String [] args ) {
int value;
String output = "";
for ( int counter = 1; counter <= 20; counter++ )
{
value = 1 + (int)(Math.random()*6);
output+=value + " ";
if (counter % 5) == 0) output +="\n":
}
JOptionPane.showMessageDialog( null,output,"20 random numbers from 1 to 6",
JOptionPane.INFORMATION_MESSAGE );
System.exit(0); } }بانتظــاركم.. :unsure:
أختكم
Miss Java
عند كتابة كود برمجي يرجى تظليله و من ثم ضغط الزر #