Japan's economy showed its first signs of inflation this year after gasoline prices surged.

Japan's core consumer prices, which exclude fresh food, climbed 0.1 percent in October from a year earlier, the first increase since December 2006, the Internal Affairs and Communications Ministry said Friday.

If both energy and food are excluded, however, consumer prices fell 0.3 percent in October.