الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

Need Your Help Plz - Japplet

مغلق
بدأه Juju في 28 ديسمبر 2007 · 3 رد · 848 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

Hello,

I have a question plz someone answers me.

I created a JFrame and I want to convert it to Japplet, I tried many times

and it didn't work with me, can someone provide me with the way, or any beneficial web sites.

Here's the question

Write a Java Applet to find the sum of the digits of a number ( 243 = 2 + 4 + 3 = 9 )

and reverse order of the digits of a number ( 243 = 342 ) .

Write your program using Java events. You will get number from KB

and when you will press enter key, your applet has to display the sum of the digits

and reverse order of the digits in separate fields

And this is my solution:

assignCode.txt

تم تعديل هذه المشاركة بواسطة Juju في 28 ديسمبر 2007 في 06:11

#2

في البداية قم بوراثة الفئة JApplet

استبدل الباني constructor بالطريقة public void init()

تكون بذلك حصلت على JApplet

الله معك

حزمة المحرك الإصدارة 0.8

أي أحد يجد أني ظلمته فليراسلني

وبإذن الله لو كان له حق سيأخذه

728x90.png

#3

تنبيه : يرجى استخدام اللغة العربية في حال توفرها

Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why

#4
اقتباس
reverse order of the digits of a number ( 243 = 342 )

أستعمل Stack لعمل هذا القلب للأرقام, على سبيل المثال:

s.push(2);
s.push(3);
s.push(4);
String a = "";
a =+ s.pop();
a =+ s.pop();
a =+ s.pop();
System.out.println(a);

تم تعديل هذه المشاركة بواسطة yadoo86 في 6 يناير 2008 في 16:48

winter-main.jpg

6179.gif

هذا الموضوع مغلق.

مواضيع مشابهة