ja som uz bol vcera zapit ten nas zapis do rozvrhu a vidim ze furt nic
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Zobrazi prspevky MenuQuote from: Sooloni on 03.06.2008, 05:36:52
vie mi nekto vysvetlit tie otazky ohladom predavania Stringov?
String c = "c";
String d = "d";
c = d;
d = "dd";
System.out.println( c + " " + d);
-----------------------------
public class Foo {
public static void main(String[]args) {
String s = "Hello";
modify(s);
System.out.println(s);
}
public static void modify(String s) {
s += "World!";
}
}
>>> preco sa nezmeni povodny s? nepredavaju sa objekty referenciou?
lol... ok s je lokalna premenna