To tomu nevěříš oprávněně, protože to je naprostá blbost.
public void setRozmer(int novyRozmer)
{
novyRozmer = Math.abs(novyRozmer);
if (novyRozmer % 2 == 0) novyRozmer++;
this.rozmer = novyRozmer;
}To tomu nevěříš oprávněně, protože to je naprostá blbost.
public void setRozmer(int novyRozmer)
{
novyRozmer = Math.abs(novyRozmer);
if (novyRozmer % 2 == 0) novyRozmer++;
this.rozmer = novyRozmer;
}