Fast Assignment

From Abap2Java

Jump to: navigation, search

ABAP

No direct equivalent. Use IF for a conditional branch and = or MOVE for an assignment.

Java

The operator "?:" combines an assignment and a conditional branch.

toBeAssignedVariable condition ? value if condition is true : value if condition is false;
String answer (a == b) ? "yes" : "no";
Personal tools