EARNINGS PER SHARE (Tables)
12 Months Ended
Jun. 30, 2015
Earnings Per Share [Abstract]  
Schedule of Earnings Per Share, Basic and Diluted
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,
 
2015

2014
 
2013
Numerator:

 
 
 
 
Net income and comprehensive income
$
129,663

 
$
176,937

 
$
80,490

Denominator:

 
 
Weighted-average shares used in computing basic net income per share
88,008

 
87,772

 
88,314

Add—dilutive potential common shares:



 
 
Stock options
1,392


1,696

 
1,803

Restricted stock units
169


247

 
142

Weighted-average shares used in computing diluted net income per share
89,569


89,715

 
90,259

Net income per share of common stock:

 
 
Basic
$
1.47


$
2.02

 
$
0.91

Diluted
$
1.45


$
1.97

 
$
0.89

Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share
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,
 
2015
 
2014
 
2013
Stock options

 

 
658

Restricted stock units
2

 
36

 
364

 
2

 
36

 
1,022