Prisoner Yousef Essessi, 18, pleaded not guilty to stealing from four shops.
He was also charged with stealing tools from a house and food from a boat berthed at Sliema.
Police Inspector Keith Arnaud said the prisoner was abandoned by his mother after his father died and shoplifted food to eat.
The thefts were between May 1 and June 17.