A university student has appeared in court on charges relating to allegations of shots being fired at a property.