v3.22.2.2
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
3 Months Ended
Jul. 31, 2022
Jul. 31, 2021
Cash flows from operating activities:    
Net income $ 152,932 $ 119,159
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 76,295 75,888
Amortization of debt issuance costs 345 359
Share-based compensation 16,185 8,623
Loss (gain) on disposal of assets and impairment charges 230 (1,770)
Deferred income taxes 24,727 33,460
Changes in assets and liabilities:    
Receivables (37,859) (18,511)
Inventories (2,899) (26,624)
Prepaid expenses (6,504) (5,264)
Accounts payable 34,799 65,727
Accrued expenses (7,865) (12,035)
Income taxes 23,953 1,531
Other, net 1,867 1,016
Net cash provided by operating activities 276,206 241,559
Cash flows from investing activities:    
Purchase of property and equipment (82,070) (45,045)
Payments for acquisition of businesses, net of cash acquired (1,065) (617,291)
Proceeds from sales of assets 5,019 18,001
Net cash used in investing activities (78,116) (644,335)
Cash flows from financing activities:    
Proceeds from long-term debt 0 300,000
Payments of long-term debt (15,998) (4,867)
Payments of debt issuance costs 0 (249)
Proceeds from exercise of stock options 0 133
Payments of cash dividends (13,128) (12,609)
Tax withholdings on employee share-based awards (15,478) (17,249)
Net cash (used in) provided by financing activities (44,604) 265,159
Net increase (decrease) in cash and cash equivalents 153,486 (137,617)
Cash and cash equivalents at beginning of the period 158,878 336,545
Cash and cash equivalents at end of the period 312,364 198,928
Cash paid during the period for:    
Interest, net of amount capitalized 8,689 7,914
Income taxes, net 0 0
Noncash investing and financing activities:    
Purchased property and equipment in accounts payable 42,008 22,007
Right-of-use assets obtained in exchange for new finance lease liabilities 736 47,775
Right-of-use assets obtained in exchange for new operating lease liabilities $ 0 $ 39,021