Hello everyone,
Since I am new to java I am not sure if this is the right way of do this.
Anyway I have created following methods:
and
Since I am going to use the credentials within many different public class I am not sure how to do this really good.
I seen people are put inside a own public class
Please help me out
what is the best way of do this
Best Regards
Xsi
Since I am new to java I am not sure if this is the right way of do this.
Anyway I have created following methods:
Java:
public static String UserCredentials(String Username,String Password)
{
//Credentials for Terminal
Username="Root";
Password="Test1234";
return Username+Password;
}
and
Java:
public static String UserCredentials(String Username,String Password)
{
String Credentials=UserCredentials(null, null);
System.out.println(Credentials);
}
Since I am going to use the credentials within many different public class I am not sure how to do this really good.
I seen people are put inside a own public class
JAVA said:public String password;
public String userName;
Please help me out
what is the best way of do this
Best Regards
Xsi