Ile wynosi silnia z 1/2?
![](https://wykop.pl/cdn/c3397993/link_zveMCavaIlDDkoLTpXK8ls0uvjQTyCw6,w220h142.jpg)
- 57
- #
- #
- #
- #
- #
- #
mirkocrew.tk
public String findProperty(Properties properties, Object key) {
String result = null;
boolean propertyFound = false;
for(Object k : properties.keySet()) {
if(k.equals(key)) {
if(properties.get(key) != null) {
propertyFound = true;
}
}
}
if(propertyFound) {
result = properties.get(key);
}
return result;
}
The objects themselves are never passed to a method, but the objects are always in the heap and only a reference to the object is passed to the method.
Rocznica
od 21.09.2022
Gadżeciarz
od 21.09.2014
Wykop.pl