آخـــر الــمــواضــيــع

صفحة 2 من 3 الأولىالأولى 123 الأخيرةالأخيرة
النتائج 16 إلى 30 من 38

الموضوع: Learn how to program in java

Hybrid View

المشاركة السابقة المشاركة السابقة   المشاركة التالية المشاركة التالية
  1. #1
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#000000'>Sallam to all ....i hope you are all doing great ... and please excuse me for not writing in Arabic becaude i do not have a keyboard with Arabic Letters lables , well i can some time type a paragraph in Arabic if it is so necessary but that takes me so much time. Any how our subject today is Java programming
    *Many of you have heared about Java and JavaScript
    *They are totally different Java is a programming language that gets compiled into bytecode and evaluated in the Microprocessor of the PC
    *On the other hand , JavaScript is does not have to be compiled into machine language , but rather it &nbsp;is alanguage that is used to add some dynamic actions to the plain text or graphics in a web site.
    * &nbsp; Java was developed by Sun Microsystem Company www.sun.com in 1991 and it wa called OAk at the beginning and then was officially called Java in 1995? Why? it is named so after an island in indonesia called Java
    *Java is a platform independent , which means that the java programs can work on any computer so we say:"Compile once and run wherever
    *So much for that now , let us get to the taste of it
    *why some times we can not open some chat programs in some web sites?<img src="http://oasis.bindubai.com/emoticons/rock.gif" border="0" valign="absmiddle" alt='???'>? think wi th me....mmmmmm..well those programs are basically Java Applets and out IE == Internet Explorer does not support some Applets because Microsoft got in conflict with Sun and it has no licence for Java releases from 1.1.8 and onward
    *so how would we get it running in our machines well you need to install one of the releases and i recommond 1.4 so go to www.java.sun.com and then downloads and chose 1.4 and go through the process of downloading
    * aha and now we have it on our machines but that is not all you have to set the path....the instructions are there also but for XP whih i am using ...you would go t o control panel> system< advanced and the to environment variables< and then double click path and then at the end put ;C:&#92;....the path&#92;jdk..the version you have installed&#92;bin
    * for the jdk.... you can just copy the name of the folder created by the installer
    .........that is it for now i will give you time to install it and i will be avaliable to answer any question and a fter you are done with setting up the software we will start programming insha&#39;ALLAH

    Note: Copyright ---- any one can copy and use what i wrote above and if some one can translate it in Arabic to help other members that will be great...so take your time</font>

  2. #2
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#000000'>No Body is interested ....yeah the layout is kind of awful and the laguage is kindaa difficult and there are some mistyoped words ....but at any case i will give you more time....waiting to hear from you brothers and sisters
    SalLam</font>

  3. #3
    عضو فعال الصورة الرمزية فتاه من الشرق
    تاريخ التسجيل
    Oct 2002
    المشاركات
    354
    قوة التمثيل
    298
    <font color='#E77471'><div align="left"> السلام عليكم اخوويه...
    i wish to learn java script, well i&#39;m going to learn it very soon, as i&#39;m studying programming and this is my second year..
    but the problem is that i cannot download any more programs, coz i have a problem with my pc.. its very slaw and doesnt have space to download more programs <img src="http://oasis.bindubai.com/emoticons/sad.gif" border="0" valign="absmiddle" alt=':('>
    but go a head brother, its really an interesting subject..

    inshallah as soon as i change my pc, i&#39;ll come back in this topic and download the program and follow up with you>>> <img src="http://oasis.bindubai.com/emoticons/down.gif" border="0" valign="absmiddle" alt=':dd:'>
    </div>
    <div align="left">thanx alot brother,,
    good luck</div></font>

  4. #4
    عضو فعال الصورة الرمزية رويان
    تاريخ التسجيل
    Apr 2002
    المشاركات
    335
    قوة التمثيل
    304
    <font color='#000000'>اممممممم

    كيف اعرف الـ class من الـ application ؟؟؟

    في الـ new operetor ضروري اني اسوي invoke للـ constructor ؟؟؟

    واشمعنى أن الـ method يكون static .. مثل معنى تواجدها في الـ function في الـ ++C ؟؟

    والسموحه ..</font>

  5. #5
    عضو جديد الصورة الرمزية الكرزالمنسي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    69
    قوة التمثيل
    294
    <font color='#E77471'><img src="http://oasis.bindubai.com/emoticons/wow.gif" border="0" valign="absmiddle" alt=':O'> <img src="http://oasis.bindubai.com/emoticons/wow.gif" border="0" valign="absmiddle" alt=':O'> <img src="http://oasis.bindubai.com/emoticons/wow.gif" border="0" valign="absmiddle" alt=':O'> <img src="http://oasis.bindubai.com/emoticons/wow.gif" border="0" valign="absmiddle" alt=':O'> <img src="http://oasis.bindubai.com/emoticons/wow.gif" border="0" valign="absmiddle" alt=':O'>
    salaam all,
    after all iam the one who is really confused with all these stuff,
    i was really intersted to learn java script and i dont know why now i lose that interest
    <img src="http://oasis.bindubai.com/emoticons/down.gif" border="0" valign="absmiddle" alt=':dd:'>
    it is sound hard to me, &nbsp;you know what ? before learning visual basic i was really exicting &nbsp;<img src="http://oasis.bindubai.com/emoticons/tounge.gif" border="0" valign="absmiddle" alt=':p'> &nbsp;but now i dont because of our GREAT teacher <img src="http://oasis.bindubai.com/emoticons/mad.gif" border="0" valign="absmiddle" alt=':angry:'>
    whatever, NOW i want to learn java and i want to know what kind of proggrame should i have and all the requirements and i will be greatful
    thanx brothers and sisters <img src="http://oasis.bindubai.com/emoticons/blush.gif" border="0" valign="absmiddle" alt=':b:'></font>
    <img src="http://alamuae.org/upload/alam14/sign.jpg" border="0">

  6. #6
    عضو فعال الصورة الرمزية رويان
    تاريخ التسجيل
    Apr 2002
    المشاركات
    335
    قوة التمثيل
    304
    <font color='#000000'>السلام والرحمه ..

    الكرز المنسي ..

    استخدم الـ JBuilder 8 &nbsp;

    ..</font>

  7. #7
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#000000'><div align="left">there is not a big difference , the class could be one of

    the application&#39;s many classes or it could be itself the

    application if the application has only one class and there
    is a diiference between a stand-alone application and

    a GUI application ... the first oneis a text or command-line

    the second is a graphical user interface

    For using the new operator you do not have to use it

    if the constructor does not do anything that affect the

    performance of the methods in the class you want to

    call from so if the and if all the class methods are static

    whic means you can call them by only putting the name of the class

    and the name of the desired method and a dot in between like this :

    MyClass.printName();
    or a predefined method Math.random();

    and so on static basic meaning is that there is only one

    refrence of the method or of the variable is used by every object of that class

    lets say we have a 3 classes 2 of them instantiate that

    one class and each one get a value of a static variable and set it to a value so the first object getting the value of that variable will get the original value which the developer of that class usually set to 0 ... ,,, suppose that object set this varible to 5 for example ...then the second oject call that same variable what value would it get for it?<img src="http://oasis.bindubai.com/emoticons/rock.gif" border="0" valign="absmiddle" alt='???'>?? it will get 5 because it is only one copy used by all the objects and the same works for the static methods....hope that solve the problem , but my advice for now is that you think of the static method or variable is that you can call them without instantiating their calsses using the way mentioned above and then when <img src="http://oasis.bindubai.com/emoticons/biggrin.gif" border="0" valign="absmiddle" alt=':D'> you go further in programming you will know the cool difference.....any how always nice questions ...keep the good work up

    Regards....</div></font>

  8. #8
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#000000'><span style='color:darkblue'><div align="left">الكرزالمنسي

    Sorry for being late to respond sister, now lets ge this straight...JavaScript is as i mentioned in the first posting a completely different language from the programming language Java which we are talikng about in this context...so which one you want to learn? i would assume that you want to learn Java so read the first and second posting please...but if you want to learn the JavaScript , HTML , or SQL ...i can open another topic for each one of those languages
    ok..so much for that lets tell you how to download JDK (Java Development Kit)

    you should go to java.sun.com and you will see this title

    The Source for Java Technology and 3 buttons below it ...choose the Standard Edition j2SE and and then to in the middle to your right hand you will see a button with J2SE Downloads and click on that one button which will take you to choose a version so click on J2SE 1.4.1
    and then in the next list click on the second row , second cloumn opposite to Windows (all languages, including English) and under SDK
    then it will ask for info about you if you do not want to get e-mails about updates do not pay any attention ...just click on no thanks continue and then the second page at the end click accept and then go theough the downloading process... i recommond putting the file .exe into the C drive you will have and then you will have to set the class path if you are running WXP here is the way to do it other wise follow the instrcuctions in the download page you just uded to download the JDK:
    XP
    go to the control panel......>click on system...> click on Advanced in the upper left corner....>then click on Environment variables button at the end of the wiondow....then in the second area of the new window look for path and click on it and in the variable value do not change or deletre any thing just go to the end of that whole line and type in : ;C:&#92;name of the folder you just downloaded to the C drive&#92;bin
    do forget that there is a semicolon befor the C:&#92; so pay attention to it
    and then click apply and restart your computer and now you should have it working so go to the MS-DOS and type in javac MyClass.java

    of course it will give you an error so if the erroe is like
    : could not fine file MyClass...congratulation you have it running

    or id the error is like javac is not recognized.....there is an error and it might be that you did not put the name of the flder correctly so go again to the C disk and right click the foolder jdk..... and choose rename but do not rename it instesd copy that name and the click enter to return it back to its original name and then go to the same place in the path and paste that name where i said to be "the name of the folder you just downloaded and restart the computer again and that should work


    i hope i did not make you confused and good luck if you have any problems plz post any question or e-mail me at QMAQMA@hotmail.com

    Regards </div></span></font>

  9. #9
    عضو فعال الصورة الرمزية أحلى حلو
    تاريخ التسجيل
    Jan 2002
    المشاركات
    253
    قوة التمثيل
    302
    <font color='#000080'>ياجماعه..

    هل تعتقدون إن باستطاعكم أو بستطاعتنا <img src="http://oasis.bindubai.com/emoticons/biggrin.gif" border="0" valign="absmiddle" alt=':D'> تعلم الجافا بانواعها بهاي الطريقه &#33;&#33; <img src="http://oasis.bindubai.com/emoticons/rock.gif" border="0" valign="absmiddle" alt='???'>

    نحن ندرس الجافا أبلتس والأدفانس دايركت من المدرس ويااااااااااالله يالله إنقببظ شي...

    يعني اللي أقصده إن لازم اللي يشرح الجافا يشرحه سماعي ونظري بعد <img src="http://oasis.bindubai.com/emoticons/biggrin.gif" border="0" valign="absmiddle" alt=':D'>

    ها..بكم الساعه ؟ <img src="http://oasis.bindubai.com/emoticons/tounge.gif" border="0" valign="absmiddle" alt=':p'></font>

  10. #10
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#FF0000'>Well .... I even can do that if you want we can open a room in Paltalk and we can talk and type at the same time , but by eyes....i do not think so man it is a littel sensetive ....not everybody want to show his face on the World Wide Web

    and one more thing ... i would love to give lectures in Java to students ...that is why i am lookking for a job in one of the universities in the gulf to teach java because i am asked by the university which i study in to do 9 months of training so hope i can get one or if you can help me to get one that will be great.

    Regards</font>

  11. #11
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#FF0000'><div align="left">[Sallam .. Yeah i am kindaa late in answering this question, but you guys know theses are the besiest days &nbsp;in any student&#39;sife....well yeah let&#39;s talk again about
    static key word ... it means that any static variable is only in one copy...so let&#39;s say that there is a variable static int counter =1;
    and there are 3 methods in the same calss one called public void add()
    which adds one to the counter so now the counter is 2 ... right
    and another method called multiply which multiply the counter by 5 so the counter is equal tp 10 now if the &nbsp;counter was not static the
    multiply result would be 5 because we will take the intitaial value which is 1 but being static means that each time we modify its intial value is rewritten by the new value

    and another thing for a static variable or method ... you can call them without having to istantiate the calss they reside in lets say a calss MyClass has the method static print

    and another class called TestMyClass wants to call the print method in the MyClass so you have two ways to call it 1- by instantiating the MyClass like this

    MyClass obj = new MyClass();
    and then call the method like this
    obj.print();

    or

    2- by Just doing this
    MyCalss.print();
    so we did not have to istantiate the MyClass class

    Ok for the java.io package

    it is the Input/Output package having clsses that you can to use to read the user input or to read as much data as you want from a file in your computer or Even creating a file using a java program or to read data coming from another compuiter through the netwirk by using Socket .... Yes it is the hardest task i have seen in Java untill now ... but the coolest stuff at the same time it is really amazing as weel as Network Programming

    Sure ... post any problem or send it by e-mail and i will be more than happy to lookat it and try to solve it insha&#39;ALLAH

    Good Luck and feel free to ask for any help ..... &nbsp; &nbsp;</div></font>

  12. #12
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#FF0000'><p align=left><font color=#ff0000>w.sallam
    many thanx for your encouraging comment up there. i am really happy to hear&nbsp;that you had excellently
    passed the java course...hope everybody did/dose.i really have no experience in vhdl ..though i heared about
    it ... must be engineering/software engineering&nbsp;stuff as i recall...keep the good work up and good luck
    &nbsp;sallam now</font></p></font>

  13. #13
    عضو فعال الصورة الرمزية رويان
    تاريخ التسجيل
    Apr 2002
    المشاركات
    335
    قوة التمثيل
    304
    <font color='#000000'><div align="left">el salaam 3aleekom


    i would like to know what is the purpose of using the static option ? what does it do exactly

    and

    whats the difference between toString and toUniversalString?

    we havent taken this class ---&#62; java.io... so can u plz put examples using javax.swing?

    and if its not too much i would like to ask about any tutorial sites where i can learn more codes..:)

    i may post a question and ask u for the solution plz? is that ok with u <img src="http://oasis.bindubai.com/emoticons/lookaround.gif" border="0" valign="absmiddle" alt=''>




    thanx</div></font>

  14. #14
    عضو فعال الصورة الرمزية أسيرة الصمت
    تاريخ التسجيل
    Apr 2003
    المشاركات
    329
    قوة التمثيل
    291
    <font color='#000000'>ممكن مساعدة

    ابغي شرح عن
    abstract,interface,static
    والبقية تأتي
    والسموحة</font>

  15. #15
    المشرف العام للموقع الصورة الرمزية بن دبي
    تاريخ التسجيل
    Dec 2001
    المشاركات
    0
    مزاجي
    Brooding
    قوة التمثيل
    200
    <font color='#FF0000'><div align="left">sure man
    abstract class is &nbsp;ageneric class that can be extended by other classes thst share some methods and behaviors. An abstract class has both concrete and abstract methods . the abstract methods are just defined by their names ; signature and there is nothing about their behaviors. so when a class extend that abstract class it defines its abstract methods as it wants. say for example we have a geometric class which have two methods ; get area and getvolume....as we all know that a circle and a rectangle are both geometric objects so both should extend that class but each one has a different way to calculate the area and the volume soo there we go.for the interface you implement the interface and you have to implement all its abstract methods..interfaces are more generic and all have constant variables and abstract methods ...for both those kind of classes we cannot instantiate them...we either extend them.....abstract ones;or implement them;;; interfaces

    and man for the static key word i recommond reading the previous posts of mine and other members in this subjects
    SALLAM NOW</div></font>

معلومات الموضوع

الأعضاء الذين يشاهدون هذا الموضوع

الذين يشاهدون الموضوع الآن: 1 (0 من الأعضاء و 1 زائر)

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •