- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
if (!account_number.equals("") && cycleT != null) {
if (!account_number.equals(num)) {
doWrite(bufferedOut);
account_number = num;
cycleT = c;
vT = v;
} else if (!cycleT.equals(c)) {
doWrite(bufferedOut);
account_number = num;
cycleT = c;
vT = v;
} else if (vT != v) {
doWrite(bufferedOut);
account_number = num;
cycleT = c;
vT = v;
}
} else {
account_number = num;
cycleT = c;
vT = v;
}
guest 22.10.2009 05:52 # 0
if (init)
{
account_number = num;
cycleT = c;
vT = v;
}
guest 22.10.2009 05:54 # 0
Вот конечный код:
boolean init = false;
if (!account_number.equals("") && cycleT != null)
{
init = !account_number.equals(num) || !cycleT.equals(c) || vT != v;
if (init)
{
doWrite(bufferedOut);
}
}
if (init)
{
account_number = num;
cycleT = c;
vT = v;
}
guest 22.10.2009 05:55 # 0
guest 25.03.2010 17:55 # 0
Код ваще бесмыслено написан и не эквивалентен оригиналу Ы :)
Он эквивалетнен этаму:
boolean isProcсes = false;
if (!account_number.equals("") && cycleT != null) {
if (!account_number.equals(num) || !cycleT.equals(c) || vT != v) {
doWrite(bufferedOut);
isProcсes = true;
}
} else {
isProcсes = true;
}
if (isProcсes) {
account_number = num;
cycleT = c;
vT = v;
}
guest 25.03.2010 17:59 # 0
boolean isProcсes = true;
if (!account_number.equals("") && cycleT != null) {
if (!account_number.equals(num) || !cycleT.equals(c) || vT != v) {
doWrite(bufferedOut);
}
isProcсes = false;
}
if (isProcсes) {
account_number = num;
cycleT = c;
vT = v;
}
guest 25.03.2010 18:00 # 0
guest 25.03.2010 18:00 # 0
boolean isProcсes = true;
if (!account_number.equals("") && cycleT != null) {
if (!account_number.equals(num) || !cycleT.equals(c) || vT != v) {
doWrite(bufferedOut);
} else {
isProcсes = false;
}
}
if (isProcсes) {
account_number = num;
cycleT = c;
vT = v;
}
guest8 23.09.2019 22:45 # −999