回到家萨嘎时间

public class demo1{
    public static void main(String[] args) {
         int arr[]= {1,2,3,4,5,6,7,8,9};
         int c[]=copy (arr,3,7);
         for(int i=0;i<c.length;i++ ) {
             System.out.print(c[i]+" ");
         }
    }
    public static int[] copy (int arr[],int from,int to) {
        int index=0;
        int newarr[]=new int[to-from];
            for(int i=from;i<to;i++) {
        newarr[index]=arr[i];
        index++;
            }
            return newarr;
        }

相关推荐

  1. 回到时间

    2024-05-13 01:40:07       30 阅读
  2. tcn 时间序列回归实例

    2024-05-13 01:40:07       59 阅读
  3. 深度学习 时间序列回归学习笔记

    2024-05-13 01:40:07       60 阅读
  4. 卡训练代码

    2024-05-13 01:40:07       40 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-13 01:40:07       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-13 01:40:07       106 阅读
  3. 在Django里面运行非项目文件

    2024-05-13 01:40:07       87 阅读
  4. Python语言-面向对象

    2024-05-13 01:40:07       96 阅读

热门阅读

  1. Map接口

    Map接口

    2024-05-13 01:40:07      27 阅读
  2. Kubernetes(k8s)的授权(Authorization)策略解析

    2024-05-13 01:40:07       25 阅读
  3. Leetcode 3147. Taking Maximum Energy From the Mystic Dungeon

    2024-05-13 01:40:07       30 阅读
  4. 前端工程化之---git hooks

    2024-05-13 01:40:07       28 阅读
  5. Git 剔除已经纳入版本管理的文件

    2024-05-13 01:40:07       31 阅读
  6. 代码随想录:二分查找相关题目推荐(35、34)

    2024-05-13 01:40:07       31 阅读