Monster_Orange
Monster_Orange
关注数: 4
粉丝数: 11
发帖数: 1,011
关注贴吧数: 28
新手请教各位大佬:目7075铝的弓把除了MK家还有谁? 目前市面在售的反曲弓把里面,使用7075铝的除了MK家的还有哪家? 貌似双赢和Hoyt的没有特别注明材质, 而飞比克的泰坦Ex和X2的都是6061铝(再早一点的白金是7075,不过已经停产了) 据我粗鄙的知识没想到其他了 ~
是不是应该给各位声优提醒一下注意疫情? 鉴于最近疫情和日本郑府方面的动作怠慢,是不是应该写写邮件给各位声优(有广播节目就最方便咯)提醒一下他/她们 ~
各位大神可以谈谈自己想象中的“理想耳塞”么? 市面上的耳塞总有这样那样的“不足”,各位大神有没有想过专属于自己的“理想耳塞”? 先说自己抛砖引玉吧: 1、外形参考QDC8或者天狼星,佩戴很舒服; 2、多单元动铁,超低频=2、低频=2或4、中频=2或4、高频=2或4、超高频=2,总数为10~16单元; 3、五分频+五出音孔; 4、声音以素质、解析为主要特色,均衡平和,可以稍微偏向中低频; 5、主攻ACG、流行方向;6、手机可推,至少能出65分(合格或以上)的声音; 7、价格的话,不超过1.5W吧,觉得会比较合适,当然也是看自己钱包咯; 各位大神可以开发想象,谈谈自己的“理想耳塞”么?
想搞个快速排序,却用上了ArrayList是不是有点“邪魔外道” …… import java.util.ArrayList; /** * Created by Monster on 2015/9/13. * 使用可变数组进行类似于快速排序的排序: * 方法checkSequen用法: * 接收一个已排序的可变数组,及一个待比较的值; * 即可输出这个值在这个已排序的数值中应该插入的位置,即下标; * * 方法quickSortByArrayList用法: * 接收一个未排序的数组,然后新建一个为空的outputArrayList; * 并对为排序的数组中的每一个元素及outputArrayList使用checkSequen; * 并按大小插入到outputArrayList中; * 最后将可变数组转换成数组outputArray输出; */ public class QuickSortByArrayList { int index; int indexInCheck; public int checkSequence(ArrayList<Integer> ArrayList,int input){ for(int i=0;i<ArrayList.size();i++){ if (input<=ArrayList.get(i)){ indexInCheck=i; break; } else { indexInCheck=-1; } } return indexInCheck; } public int[] quickSortByArrayList(int[] inputArray){ ArrayList<Integer> outputArrayList=new ArrayList<Integer>(0); for(int j=0;j<inputArray.length;j++){ index=checkSequence(outputArrayList,inputArray[j]); if(index==-1){ outputArrayList.add(inputArray[j]); } else { outputArrayList.add(index,inputArray[j]); } } int[] outputArray=new int[outputArrayList.size()]; for(int i=0;i<outputArrayList.size();i++){ outputArray[i]=outputArrayList.get(i); } return outputArray; } }
求教各位大神,请教一个Java ArrayList的问题 …… 同学给我这个菜鸟除了一道题: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fcodecheck.it%2Fcodecheck%2Ffiles%3Frepo%3Dsjsucs46b%26problem%3Dhw1a%26level%3D2&urlrefer=15b4f773bd087f7b338f17c144f31489 Use the following file: ArrayOpsTester.java import java.util.*; public class ArrayOpsTester { public static ArrayList<Integer> listOfIntegers(int... values) { ArrayList<Integer> result = new ArrayList<>(); for (int v : values) result.add(v); return result; } public static void main(String[] args) { ArrayList<Integer> input = listOfIntegers(2, 14, 9, 15, 9, 7, 3, 17, 14); int[] result = ArrayOps.copyArrayList(input); System.out.println(input + " -> " + Arrays.toString(result)); System.out.println("Expected: [2, 14, 9, 15, 9, 7, 3, 17, 14] -> [2, 14, 9, 15, 7, 3, 17]"); input = listOfIntegers(61, 61); result = ArrayOps.copyArrayList(input); System.out.println(input + " -> " + Arrays.toString(result)); System.out.println("Expected: [61, 61] -> [61]"); input = listOfIntegers(143); result = ArrayOps.copyArrayList(input); System.out.println(input + " -> " + Arrays.toString(result)); System.out.println("Expected: [143] -> [143]"); input = new ArrayList<>(); result = ArrayOps.copyArrayList(input); System.out.println(input + " -> " + Arrays.toString(result)); System.out.println("Expected: [] -> []"); } } Complete the following file: ArrayOps.java import java.util.ArrayList; public class ArrayOps { /** This method goes through the given array of integers, yielding a new ArrayList from the array that contains the elements of the original array, with duplicates removed. @param theArray, an array of integer @return the new ArrayList */ public static ArrayList<Integer> copyArray(int[] anArray) { // Complete this for the draft return null; } /** This method goes through the given array list of integers, yielding a new array from the array list that contains the elements of the original array list, with duplicates removed. @param theArrayList, an array list of integer @return the new array */ public static int[] copyArrayList(ArrayList<Integer> anArrayList) { // Complete this for the final version return null; } } 尝试地写了一下: public class ArrayOps { public static ArrayList<Integer> copyArray(int[] anArray) { // Complete this for the draft ArrayList<Integer> outputArrayList=new ArrayList<Integer>(); if (anArray.length>1) { for (int i=0;i<anArray.length-1;i++) { outputArrayList.add(anArray[i]); } } return outputArrayList; } public static int[] copyArrayList(ArrayList<Integer> anArrayList) { // Complete this for the final version int[] outputArray={0}; if (anArrayList.size()==1) { outputArray[0]=anArrayList.get(0); } else { for(int i=0;i<anArrayList.size()-1;i++) { outputArray=new int[anArrayList.size()-1]; outputArray[i]=anArrayList.get(i); } } return outputArray; } } 但是出来的结果不对啊: [2, 14, 9, 15, 9, 7, 3, 17, 14] -> [0, 0, 0, 0, 0, 0, 0, 17] Expected: [2, 14, 9, 15, 9, 7, 3, 17, 14] -> [2, 14, 9, 15, 7, 3, 17] [61, 60] -> [61] Expected: [61, 61] -> [61] [143] -> [143] Expected: [143] -> [143] [] -> [0] Expected: [] -> [] 貌似长的都不行 …… 到底怎么回事啊 ……
【求教】求教各路大神,推荐耳塞 ~ 求教各路大神: 小弟现在在用手机+杰士S4R,年底打算犒劳一下自己,计划升级耳塞,暂时没有败入前端的准备, 然后平时基本是听ACG、陈医生、周董、林肯公园、雷帝嘎嘎之类,比较杂乱, 倾向于平衡、监听风,预算在¥1500左右; 本来已经目标锁定了老铁家Im03(原定im04的,但各方都说手机推不好,遂放弃) 但这两个星期去智通蹭听了西石的UM30pro被感动了,im03对比起来像是蒙了一层膜,不够清晰,于是纠结 …… 毕竟, im03海淘才¥1370左右,加上杂七杂八估计¥1500可以到手,大家坛最近也出得很多,9新估计¥1200可以入手; 但Um30pro少有人出,就算出都在¥1600左右,全新而且无论日亚、美亚都高企在¥2100以上 …… 求教各路大神 ~ 怎么选择好啊?或者有没有其他好推荐???
1
下一页