会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ltl-1208
博客园
首页
新随笔
联系
订阅
管理
2024年4月6日
Java中简单的旋转操作
摘要: 题目:给定两个字符串A和B。A的旋转操作就是将A 最左边的字符移动到最右边,判断A是否能变成Bpublic class test2 { public static void main(String[] args) { //建立两个字符串 String str1="abcdef"; String st
阅读全文
posted @ 2024-04-06 17:14 吕小木
阅读(2)
评论(0)
推荐(0)
编辑
2024年3月23日
用索引"copyofRange(int[] arr, int from,int to)"复制数组中的数,形成新数组的方法
摘要: public class test2 { public static void main(String[] args) { //定义原数组 int[] arr = {1,2,3,4,5,6,7,8,9} ; //引用copyofRange方法复制元素到新数组中 int[] newcopy = cop
阅读全文
posted @ 2024-03-23 14:22 吕小木
阅读(5)
评论(0)
推荐(0)
编辑