NEW YORK (AP) — U.S. stocks rose Friday to finish a wild July for Wall Street as Amazon leaped, Apple sank and rising oil prices worsened worries about inflation staying high. Higher oil prices have pushed the cost for a gallon of regular gasoline to an average of nearly $4.11 across the United States, up from $3.85 a month ago, according to AAA. The worries about inflation sent yields in the bond market even higher. The yield on the 10-year Treasury rose to 4.71% from 4.68% late Thursday and from just 3.97% before the war with Iran sent oil prices shooting higher. Hikes to rates by the Fed could restrain inflation, but they could also slow the economy and undercut prices for stocks and other investments.