battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programmers allianceLog in

the LivinGrimoire Artificial General Intelligence software design pattern forum

descriptionmy java pair variable class Emptymy java pair variable class

more_horiz
class :

Code:

public class DCStrPair<T> {
   public T key;
   public T value;
}


usage :

Code:


DCStrPair<String> testN1 = new DCStrPair<>();
      testN1.key = "hello ";
      testN1.value = "world";
      System.out.println(testN1.key + testN1.value);


:ryu ranger:

descriptionmy java pair variable class EmptyRe: my java pair variable class

more_horiz
I could call the class DCPair : data class pair but I'll be using it with strings.
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply