Get the App
SLTechnology News&Howtos  ›  Database  › 

The method of finding the intersection in oracle and java

Shulou Source: shulou.com Published: 2022-06-01 16:45:01 09月20日 Update

And ((# {protocolStartTime} > = t.protocol_start_time AND # {protocolStartTime} = t.protocol_start_time AND # {protocolEndTime})

This determines that the start time and end time you pass in are compared with the start time and end time in the library to find out the time overlap, of course, this check contains your sentence this article, you can find more than one.

In java, you can use retainAll to find the intersection

Public static void main (String [] args) {

List list1 = new ArrayList ()

List list2 = new ArrayList ()

List1.add ("2")

List1.add ("s")

List1.add ("2")

List1.add ("f")

List2.add ("g")

List2.add ("c")

List2.add ("2")

List2.add ("a")

List1.retainAll (list2)

System.out.println (list1.size ())

System.out.println (list1.retainAll (list2))

}

Tags: Time intersection multiple statement method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Shulou Information vpn macOS