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

collection

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

welcom;

attributesList.add(attributeValuesList.toArray(new String[attributeValuesList.size()]);

I ask this is means you convert attributeValuesList to array of strings have size of attributeValuesList and then add it to attributesList???

So attributesList now have array of string

This is right or not

And if it is right why when I print attributesList give me address in memeory

#2

أرجو كتابة السؤال و الأكواد بطريقه منظمه،

وياريت أخي العزيز تستخدم لغة القرآن

#3

لم افهم السؤال جيد ، لو الكود كامل يمكن افهم ،

لكن شئ طبيعي إنه يطبعلك الهاش كود تبع المصفوفه ، لأن المصفوفه أوبجكت

#4
attributesList.add(attributeValuesList.toArray(new String[attributeValuesList.size()]));

i now put the code in arranged way i aske what this code mean step by step please

i am sorry i write in english but i have to

#5
اقتباس
2. يتم طرح السؤال باللغة العربية الفصحي لأنها مفهومة لكل العرب ، وتجنب الكلمات ذات المرجع المحلي و الا تعرضت المشاركة للحذف

/index.php?showtopic=130560

أرجو من المشرفين عمل اللازم

#6
مبتدئ جافا كتب:
/index.php?showtopic=130560

أرجو من المشرفين عمل اللازم

in real i do not know what is the problem my engish is very clear and i do not say local words as you say??

and about the Supervisor to make necssery are you think that i am care

i not care because i do not make anything wrong?????

if you not understand my english this not make my subject closed

thank you for help

#7

يا أخي إحنا بنتكلم عربي ،

اقتباس
يتم طرح السؤال باللغة العربية الفصحي لأنها مفهومة لكل العر
ب ، إنت يقا ممكن تروح تناقش الإداره نفسها في الموضوع ده، موش تناقشني أنا عشان موش أنا اللي حاطط الوايح دي،

هل من سبب يمنعك من الكتابه بالعربيه ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

لو هناك سبب ما ، أرجو توضيحه مشكررو و إلا ، فكما أسلفتُ، عليك الالتزام بالعربيه

#8

الاوبجكت attributesList من اي كلاس ؟

منقطع من حين لاخر

#9

ياأخي شي طبيعي لأن المصفوفه أوبجكت ، وانت اذا طبعت اوبجكت يطبعلك الهاش كود حقه ،

اقرأ اي كتاب عن المصفوفات وتتضح المسأله

#10
List attributesList = new ArrayList();

The attributesList is from list class

why all answer read from books or google are you think if i not read and

search i will ask any one

allah save all

#11

حرام عليك ، أنا ماقلت اقرأ كتاب كامل ، فقط قسم المصفوفات ,

هنا نعطي مفاتيح الأمور فقط ،

بكل الأحوال شوف :

	public static void main(String[] args) {
		// TODO code application logic here
List l =new ArrayList(); // List of Objects -- No Generic 
l.add(4);// as JDK1.5 its OK
String[] s=new String[2];
Object obj = s; // Array is Object 
l.add(obj); // oops List of different Things still OK  
Iterator it=l.iterator();
while(it.hasNext())
	System.out.println(it.next()); //ofcourse it will print toString for each Object in the collection 
	}

وهذا ماهو مكتوب في toString للكلاس Object

	public String toString() {
	return getClass().getName() + "@" + Integer.toHexString(hashCode());
	}
#12

First thank you for clear explanation

Here we put only the key of problems!!!

Why!!! You do that you must help the people who want help because you know? To publish information and knowledge

This will be in your works in the end day

Any way thank you

Best regards

#13

ياأخي مثل مشكلتك ومشاكل كثير من الأعضاء ،

قوقل يفيدك أكثر مني ومن الباقين

تعلم البحث عن المشكله وحل المشكله بنفسك ،

لاتفهم غلط ، ليس كلامي معناه عدم المساعده ، بل هو مساعدتك بأفضل صوره

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

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