Hirdetés
- hcl: GPT diszk kisebbre klónozása
- Luck Dragon: Asszociációs játék. :)
- sziku69: Fűzzük össze a szavakat :)
- ubyegon2: Airfryer XL XXL forrólevegős sütő gyakorlati tanácsok, ötletek, receptek
- D@reeo: OlvasóMester - vágólap felolvasó alkalmazás
- sziku69: Szólánc.
- t1csi: DDR3 RAM vadászat – egy kis gondolkodási anomália
- D1Rect: Nagy "hülyétkapokazapróktól" topik
- Depression: R.I.P.
- Mustaros: Torrent jó dolog, de már nem használom.
Új hozzászólás Aktív témák
-
sztikac
őstag
Ha már MOOC... Van ez a kód:
public boolean equals(Object compared) {
// if the variables are located in the same position, they are equal
if (this == compared) {
return true;
}
// if the compared object is not of type Person, the objects are not equal
if (!(compared instanceof Person)) {
return false;
}
// convert the object into a Person object
Person comparedPerson = (Person) compared;
// if the values of the object variables are equal, the objects are equal
if (this.name.equals(comparedPerson.name) &&
this.age == comparedPerson.age &&
this.weight == comparedPerson.weight &&
this.height == comparedPerson.height) {
return true;
}
// otherwise the objects are not equal
return false;
}Itt nem igazán értem, hogy a type cast-ra (
Person comparedPerson = (Person) compared;) mi szükség van, hiszen a metódus már megkapja a compared objektumot
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- Samsung Galaxy Book PRO 2 /i7-1260P/16GB/512SSD/AMOLED/13.3/Intel Iris Xe/Gari
- BESZÁMÍTÁS! ASUS DUAL MINI RTX 3060Ti 8GB videokártya garanciával hibátlan működéssel
- Apple iPhone 15 256GB Sárga Független Bontatlan / 27% áfás számla
- AKCIÓ! ASRock A520M R5 4500 8GB DDR4 512GB SSD GTX 1050 Ti 4GB Zalman T3 Plus DeepCool 400W
- Lenovo Thinkpad L380,13.3" FHD,i3-8130U,8GB DDR4,128GB SSD, WIN11
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

