Arama butonu
Bu konudaki kullanıcılar: 1 misafir, 1 mobil kullanıcı
9
Cevap
1385
Tıklama
0
Öne Çıkarma
Index nedir, Minimum değer nasıl bulunur?
G
12 yıl
Yüzbaşı
Konu Sahibi

Herkese iyi geceler,
Yapmam gereken classta Inputlardan oluşan bir ArrayList var. Benden method olarak index'i bulmam istenmiş.
public int get(int i) -> returns the number stored at index position i. If there is no number at index i, the method returns -1.

Bu index kodun ne olduğunu anlamadan benden bir de minimum değeri bulmam istenmiş onun açıklamasında ise;
public int minimum (int index1, int index2) : compares the two integers in the ArrayList numbers, denoted by index positions index1 and index2, and returns the index position of the minimum of these two integers. This method will be used as a service method for the method findMinimum.


Bunları nasıl kullanacağım, yardım edebilecek biri olursa minnettar olurum.





< Bu mesaj bu kişi tarafından değiştirildi Guest-2EAE99B3D -- 5 Ocak 2014; 21:59:47 >