battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share
 

 my java pair variable class

Go down 
AuthorMessage
Moti Barski
super
super
Moti Barski

Posts : 356
Join date : 2011-08-02

my java pair variable class Empty
PostSubject: my java pair variable class   my java pair variable class EmptyMon Apr 22, 2019 10:27 pm

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

_________________
MB over and out emp it up
Back to top Go down
View user profile
Moti Barski
super
super
Moti Barski

Posts : 356
Join date : 2011-08-02

my java pair variable class Empty
PostSubject: Re: my java pair variable class   my java pair variable class EmptyMon Apr 22, 2019 10:30 pm

I could call the class DCPair : data class pair but I'll be using it with strings.

_________________
MB over and out emp it up
Back to top Go down
View user profile
 
my java pair variable class
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: