The drugs found in several different bags were located in his bedroom.
Frank Buttimer, solicitor, said the probation report was favourable and the young man had commenced third level education and was due to resume in college.
The solicitor said the defendant acknowledged his wrongdoing and had shown remorse.
Judge Kelleher said, “He was not on drugs, he was doing it to make money and was profiteering here.”
Mr Buttimer said there was also an addiction forming at the time. The judge said he did not accept that.
The solicitor said the young man had good prospects.
The judge repeated, “He did this to make money and he was caught. I take the view if you sell drugs you take your chance.”
Cash bail of €400 was set in the event of an appeal.