| | | | | | | | |
| | Six Months Ended | |
| | December 31, 2019 | | | December 31, 2018 | |
Cash flows from operating activities: | | | | | | | | |
Net income | | $ | 280,702 | | | $ | 230,377 | |
Adjustment to reconcile net income to cash provided by operating activities: | | | | | | | | |
Depreciation and amortization | | | 77,077 | | | | 66,453 | |
Amortization ofright-of-use-assets | | | 12,323 | | | | — | |
Stock-based compensation costs | | | 27,309 | | | | 25,011 | |
Loss attributable to equity method investments | | | 13,786 | | | | 3,375 | |
Impairment of equity investments | | | 5,419 | | | | 2,959 | |
Changes in fair value of business combination contingent consideration | | | (7 | ) | | | (272 | ) |
Changes in operating assets and liabilities, net of effect of acquisitions: | | | | | | | | |
Accounts receivable, net | | | (275 | ) | | | 32,366 | |
Inventories, net | | | (28,294 | ) | | | (30,570 | ) |
Prepaid expenses, net deferred income taxes and other current assets | | | (66,818 | ) | | | (26,922 | ) |
Accounts payable, accrued expenses and other | | | (88,927 | ) | | | (125,190 | ) |
| | | | | | | | |
Net cash provided by operating activities | | $ | 232,295 | | | $ | 177,587 | |
Cash flows from investing activities: | | | | | | | | |
Purchases of property, plant and equipment | | | (47,771 | ) | | | (31,425 | ) |
Patent registration costs | | | (4,871 | ) | | | (4,643 | ) |
Business acquisitions, net of cash acquired | | | (3,423 | ) | | | (739,249 | ) |
Purchases of investments | | | (21,841 | ) | | | (27,967 | ) |
Proceeds / (Payments) on maturity of foreign currency contracts | | | 1,064 | | | | (3,127 | ) |
| | | | | | | | |
Net cash used in investing activities | | $ | (76,842 | ) | | $ | (806,411 | ) |
Cash flows from financing activities: | | | | | | | | |
Proceeds from issuance of common stock, net | | | 24,297 | | | | 12,784 | |
Taxes paid related to net share settlement of equity awards | | | (41,091 | ) | | | (27,340 | ) |
Purchases of treasury stock | | | — | | | | (22,844 | ) |
Payment of business combination contingent consideration | | | (302 | ) | | | (430 | ) |
Proceeds from borrowings, net of borrowing costs | | | 730,000 | | | | 1,091,230 | |
Repayment of borrowings | | | (700,012 | ) | | | (352,798 | ) |
Dividends paid | | | (112,202 | ) | | | (105,567 | ) |
| | | | | | | | |
Net cash (used in) / provided by financing activities | | $ | (99,310 | ) | | $ | 595,035 | |
| | | | | | | | |
Effect of exchange rate changes on cash | | $ | 824 | | | $ | (5,444 | ) |
| | | | | | | | |
Net increase / (decrease) in cash and cash equivalents | | | 56,967 | | | | (39,233 | ) |
Cash and cash equivalents at beginning of period | | | 147,128 | | | | 188,701 | |
| | | | | | | | |
Cash and cash equivalents at end of period | | $ | 204,095 | | | $ | 149,468 | |
| | | | | | | | |