Basically what I am trying to do is store a list of objects in Firebase and I want them to all be named differently. These objects are going to be literal classes (like school classes) with information such as student roster and teacher ID etc you get it. If someone creates an object, how can I ensure that the name that is stored on the Firebase is not a duplicate.
I know it is not possible with java but what I'm after is something to the effect of:
string className = "bio101";
ClassObj className = new ClassObj(variable x, variable y);
This way I can fetch className
from an EditText
and name the object after that.
Any hints?