Tag: StringBuilder
-
How to find intersection values of two Arrays
This is the third solution to find the intersection of two Arrays of integers. This program uses functional interface with single abstract method, and implementing by using lambda expression. The lambda expression accepts two arrays of integers data type. The internal logic is comparing each value of the first array with each of value of…
-
How to find intersection values of two Arrays
This is the second solution to find the intersection of two Arrays of integers or Strings or Characters. This program has one Generic method which accepts two arrays of any data type (Integers or Strings or Characters). The internal logic is comparing each value of the first array with each of value of the second…
-
How to find intersection values of two Arrays
This is the first solution to find the intersection of two Arrays of integers. This approach follows the core logic of comparing each of the first array with each of element of the second array. This program uses couple of StringBuilder’s class methods.
-
How to find subsets of a given string
This is the second solution to list all the subsets or substrings of a given string. This program does not use the substring method, instead uses the StringBuilder class append method.
-
How to find the reverse of an integer value using StringBuilder class
This is the first solution to find the reverse of an integer value using the StringBuilder (mutable) class type.
