Making Constant Data Bases to recall in program.

I'm a student learning programming. I need to find out what web address gets my database and server. I need to find out what the database name is.

I'm doing this Android Studio for Beginners Part 4 (https://youtu.be/bu5Y3uZ6LLM?t=792) at this point in the video time.

I'm having to create static final Strings to call or refer to in the program. I could use some help as I do not know if this is actual information I can find. It seems to be something programmers do often. Can someone walk me through as I try to understand what's going on and how to do it using best practices?

 package com.bh.mysqlproject;

public class DbStrings {


    static final String DATABASE_URL = "";   //What do I put here between the quotes?//
    static final String DATABASE_NAME = "";
    static final String USERNAME = "";
    static final String PASSWORD = "";

}

0 answers