In the given circuit the current flow through the p-n junction diode is in Ampere
Diode is ideal and in forward bias. Hence, 10Ω resistance parallel to diode gets short-circuited.
Current through diode = I=VR=510=0.5A
=0000.50A