Java tutorial
//package com.java2s; public class Main { /** * Encode user email to use it as a Firebase key (Firebase does not allow "." in the key name) * Encoded email is also used as "userEmail", list and item "owner" value */ public static String encodeEmail(String userEmail) { return userEmail.replace(".", ","); } }