Consolidated Statements of Operations and Comprehensive Income - USD ($)
shares in Thousands, $ in Thousands
12 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2017
Income Statement [Abstract]      
Revenues $ 1,161,733 $ 1,016,861 $ 865,268
Cost of revenues 624,129 573,289 469,560
Gross profit 537,604 443,572 395,708
Operating expenses:      
Research and development 82,070 74,324 69,094
Sales, general and administrative 43,237 43,121 36,853
Litigation settlement 18,000 0 0
Total operating expenses 143,307 117,445 105,947
Income from operations 394,297 326,127 289,761
Interest expense and other, net (12,808) (11,985) (4,737)
Income before income taxes 381,489 314,142 285,024
Provision for income taxes 58,795 117,852 27,518
Net Income $ 322,694 $ 196,290 $ 257,506
Net income per share of common stock:      
Basic (in dollars per share) $ 4.52 $ 2.54 $ 3.16
Diluted (in dollars per share) $ 4.51 $ 2.51 $ 3.09
Weighted average shares used in computing net income per share of common stock:      
Basic (in shares) 71,435 77,179 81,478
Diluted (in shares) 71,602 78,331 83,252
Other comprehensive income:      
Unrealized gains on available-for-sale securities $ 393 $ 0 $ 0
Other Comprehensive income 393 0 0
Comprehensive income $ 323,087 $ 196,290 $ 257,506