- Kompakt vízhűtés
- DDR4 vs DDR5 vs DDR6 – melyik kell neked?
- TCL LCD és LED TV-k
- Azonnali notebookos kérdések órája
- Vezetékes FEJhallgatók
- Intel Core i5 / i7 / i9 "Alder Lake-Raptor Lake/Refresh" (LGA1700)
- Melyik tápegységet vegyem?
- Milyen videókártyát?
- Azonnali informatikai kérdések órája
- Vezeték nélküli fejhallgatók
Ú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?:))
- Fotók, videók mobillal
- Gitáros topic
- Hivatalos a OnePlus 13 startdátuma
- Kerékpárosok, bringások ide!
- sellerbuyer: ScreenX technológia élmények az Arénában
- Milyen okostelefont vegyek? OFF topik
- Apple iPhone 16 Pro - rutinvizsga
- PC Game Pass
- Kertészet, mezőgazdaság topik
- BestBuy topik
- További aktív témák...
- Microsoft Surface Laptop 5 13.5" i5-1245U 16GB 256GB 1év garancia
- Samsung Galaxy A12 64GB Kártyafüggetlen 1 év Garanciával
- 137 - Lenovo Legion Pro 7 (16IRX9H) - Intel Core i9-14900HX, RTX 4080
- ASUS TUF F15 FX506 - 15,6"FHD IPS 144Hz - i5-11400H - 32GB - 1TB - RTX 3050 Ti - Win11 - MAGYAR
- Telefon Felvásárlás!! iPhone 14/iPhone 14 Plus/iPhone 14 Pro/iPhone 14 Pro Max
Állásajánlatok
Cég: CAMERA-PRO Hungary Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest