移植Arrays.copyOfRange从Java 6到Java 5 [英] Porting Arrays.copyOfRange from Java 6 to Java 5

查看:117
本文介绍了移植Arrays.copyOfRange从Java 6到Java 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些源$ C ​​$ C,我需要Java 5的下做出的可运行偏偏是code使用<一个href=\"http://download.oracle.com/javase/6/docs/api/java/util/Arrays.html#copyOfRange%28boolean%5B%5D,%20int,%20int%29\"相对=nofollow> Arrays.copyOfRange 功能这是只在Java 6中引入什么是仅使用Java 5 API来实现相同的效用的最有效方法是什么?

I have some source code that I need to make runnable under Java 5. Unfortunetly that code uses Arrays.copyOfRange function which was only introduced in Java 6. What would be the most effective way to implement same utility using only Java 5 API?

推荐答案

查看的OpenJDK 6页 - 它是开源的Java。您可以下载并阅读源$ C ​​$ C自己,找出它是如何实现的,并添加功能手动应用程序。

Check out the OpenJDK 6 page - it's open source Java. You can download and read the source code yourself, find out how it's implemented, and add the functionality to the app manually.

这篇关于移植Arrays.copyOfRange从Java 6到Java 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆