The stock market shook off a wobbly start and ended solidly higher, led by gains in technology and energy stocks, the AP reports. Apple climbed 2.5% Tuesday, a day ahead of its latest iPhone update. Amazon also rose 2.5%. Energy companies rose along with the price of crude oil. Wholesale gasoline prices rose sharply as traders anticipated shortages as Hurricane Florence approached the East Coast. Home improvement companies also rose. Lowe's climbed 1.6%. The S&P 500 rose 10 points, or 0.4%, to 2,887. The Dow Jones Industrial Average climbed 113 points, or 0.4%, to 25,971. The Nasdaq composite added 48 points, or 0.6%, to 7,972. (More stock market stories.)