Page 1 of 2 12 LastLast
Results 1 to 20 of 39

Thread: plase help me

  1. #1
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Exclamation plase help me

    i write this program

    import java.io.*;
    import java.util.*;
    public class bbba{
    public static void main (String[] args) throws IOException{
    File file=new File("C:\\new.doc");
    BufferedWriter write=new BufferedWriter(new FileWriter(file));
    write.write("nassir");
    write.write("nassir");
    write.close();
    }
    }

    i want show the result
    nassir
    nassir

    on disply nassirnassir

    but without use System.out.println();
    becouse i want enter names the student and order ther name
    name1
    name2
    name2


    thank you
    this is my email :nassirfarhan@yahoo.com

  2. #2
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    Do you want the program asks the user to type certain names without using println statement ?

  3. #3
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Post

    thank you friend

    i am new in programming i hope java
    i read more book but sometime i no understand many conceptual.

    i want enter names to file.txt
    and order the names
    namestudent1
    namestudent2
    i hope you understand me

  4. #4
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    Hi
    I'm new too :) I'm not an expert (recently I'm studying Java at level one )

    I know what you mean .. I'll write the program now and post it here ..

    Do you speak Arabic ?? if not ignore it :)

  5. #5
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    thanks friend

    now i am in internet
    i will wait you

  6. #6
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    try this

    import java.util.Scanner;
    public class read
    {
    public static void main (String[]args)
    {
    Scanner abc = new Scanner (System.in);
    String First_name,Second_name;
    System.out.print("Type the first name :");
    First_name= abc.nextLine();

    System.out.print("Type the second name :");
    Second_name= abc.nextLine();
    }
    }


    tell me if it works

  7. #7
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    You seem you can speak Arabic more than English ..
    you can speak with me in Arabic if you want :)

  8. #8
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    thanks friend
    i know this
    but i want from file.txt
    read and write
    i know i will make you tired

  9. #9
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    I've no idea about file.txt in Java
    I told you I'm in level one (I don't know many concepts)


    Sorry!

  10. #10
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    السلام عليكم

  11. #11
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    وعليكم السلام

  12. #12
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    انا اسف لاني يمكن ما وصلتلك الفكره
    بس انا جديد على البرمجه بس حبيت اشتغل لغة جافا وانا هم محتاجه
    فحاولة اشارك بهذا المنتدى حتى يساعدني
    واتمنه تساعدني

  13. #13
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    انا بعد جديدة ع الجافا ادرسه بالجامعه
    يمكن مالي شهرين بالمستوى الأول ..
    وما أخذنا كثير
    ما أعرف الحين الا loops ,read statements,arrays
    انت تستخدم javacreator??
    ولا برنامج ثاني بالبرمجه ؟


    ان شاءالله يفيدونك الاعضاء هنا ..
    مع اني احس هالقسم ميت ..

  14. #14
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    انا طالب ماستر
    بس اول مره اخذ الجافا
    فماعرف بيه شي
    اتمنى اساعدني
    لان شفتك كتبتلي اكسبشن
    وانا مافاهمه ياريت اساعدني

  15. #15
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    ماشاء الله ..الله يوفقك :)

    اكسبشن ؟؟ ما فهمت قصدك ..


    انا توني مبتدئة بالبرمجه والبرمجة عالم كبير
    Last edited by o0oNorao0o; 12-27-2009 at 08:19 AM.

  16. #16
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    انا استخدم
    jCreator

  17. #17
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    اهاا نفسي ..

    طيب اي كتاب تدرس ؟؟

  18. #18
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

    Default

    عندي كتب انكليزيه
    وكو كتاب عربي هو اول كتاب قراة

  19. #19
    nassir is offline Member
    Join Date
    Dec 2009
    Posts
    33
    Rep Power
    0

  20. #20
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    الحين انت تبي write statement
    ؟؟
    هذا اللي انت مو فاهمه
    صح

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •