A 22-year-old man has appeared in court to face three charges including possession of a firearm with intent to endanger life