A yob has been jailed for seven months - after he threw a CAN outside a takeaway.