java1.8可以使用stream()流的方法,如下

List<Integer> numbers = Arrays.asList(1,2,3,4,5,6,7,8,9,10);
int chunkSize = 20;   //3 ok
AtomicInteger counter = new AtomicInteger();

Collection<List<Integer>> resultList = numbers.stream()
      .collect(Collectors.groupingBy(it -> counter.getAndIncrement() / chunkSize))
      .values();

System.out.println(resultList);

使用第三方工具类的方法:

  • Google Guava has Lists.partition(List list, int size) method (docs)
  • Apache Commons Collections has ListUtils.partition(List list, int size) method (docs)

举例说明:
Check out Lists.partition(java.util.List, int) from Google Guava:
Returns consecutive sublists of a list, each of the same size (the final list may be smaller). For example, partitioning a list containing [a, b, c, d, e] with a partition size of 3 yields [[a, b, c], [d, e]] -- an outer list containing two inner lists of three and two elements, all in the original order.

近日,腾讯在苹果应用商城上线了一款名叫“猫呼”的视频社交软件。
腾讯社交猫呼

该软件主打陌生人视频社交聊天,并支持美颜功能。同时,还可以进行实施面具匹配,介绍上说可以佩戴好看的面具和有趣的灵魂聊天;还有附近人功能,可以通过附近功能发现周围用户;支持在视频的时候进行美颜美妆,从介绍上可以发现,美型、美颜、瘦脸、瘦鼻、大眼等一系列针对性美化;还可以智能优化周围环境,保证隐私安全;同时在暗光下可以自动补光,保证视频效果。

在猫呼,所有的一切都是为了最后的相见而准备。让你遇见真正有趣的人,开启零距离在线视频邂逅。

目前处于冷启动阶段,已在App Store上线。仅支持通过QQ与微信两个通道进行注册。注册后,可设定交友意向,诸如“随便聊聊”、“单身交友”等作为匹配意向标签。用户添加好友后,仅能通过视频聊天,而无法使用文字或图片。

腾讯内部正孵化其他两款社交类产品,目前均处于保密阶段。其中一款Slogan为“记录认真生活的你”的产品,或对标小红书/绿洲,;另一款主打“高品质脱单”的恋爱交友App,目前正在腾讯内部秘密测试。

appstore 链接:https://apps.apple.com/cn/app/猫呼/id1471632106

Aurora商店:Google Playstore客户端

Aurora商店是Google Play商店的非官方FOSS客户,设计典雅。 Aurora商店不仅下载,更新和搜索Play商店等应用程序,还为用户提供了新功能。

58435-av3u39si9kk.png

Aurora商店不需要运行Google的专有框架; 无论有没有GooglePlayService或MicroG,它都能完美运行。 但是,仍然依赖那些服务的人也可以使用Aurora Store!
尽管Aurora商店最初基于Sergei Yeriomin的Yalp商店,但v3.0是从头开始的干净完整的重写,遵循Material Design并在运行Android 5.0+的所有设备上运行。

下载地址:

Aurora OSS: http://auroraoss.com/AuroraStore/Nightly/

XDA Forum: https://forum.xda-developers.com/android/apps-games/galaxy-playstore-alternative-t3739733

F-Droid: https://f-droid.org/en/packages/com.aurora.store/

介绍页:http://auroraoss.com
https://gitlab.com/AuroraOSS/AuroraStore

特性

免费/免费软件
-拥有GPLv3许可证

漂亮的设计
-基于最新的材料设计准则

匿名帐号
-您可以使用匿名帐户登录并下载,因此您不必使用自己的帐户

个人账户
-您可以使用自己的Google帐户下载购买的应用或访问愿望清单

出埃及记整合
-立即查看应用程序隐藏在其代码中的跟踪器

截图

An Open Source alternative for Google Play Store

87838-m1a7woa26bg.png

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。