EARNINGS PER SHARE (Tables)
12 Months Ended
Jun. 30, 2020
Earnings Per Share [Abstract]  
Computation of basic and diluted earnings (loss) per share
The following table sets forth the computation of basic and diluted earnings per share for the periods indicated (in thousands, except per share data):
 Years Ended June 30,
 202020192018
Numerator:
Net Income$380,297 $322,694 $196,290 
Denominator:
Weighted-average shares used in computing basic net income per share65,427 71,435 77,179 
Add—dilutive potential common shares:
Stock options30 87 1,074 
Restricted stock units57 80 78 
Weighted-average shares used in computing diluted net income per share65,514 71,602 78,331 
Net income per share of common stock:
Basic$5.81 $4.52 $2.54 
Diluted$5.80 $4.51 $2.51 
Potential shares of common stock excluded from diluted per share calculation The following table summarizes the total potential shares of common stock that were excluded from the diluted per share calculation, because to include them would have been anti-dilutive for the period (in thousands):
 Years Ended June 30,
 202020192018
Restricted stock units6 — 2