I have an ArrayList with instances of a class (in this case \'loan\'). This loan class conta开发者_JAVA百科ins a variable \'date\'. I want to sort my ArrayList by these date variables in the most opti
I have an Array List to save selected 开发者_运维问答files and a ListBox to display only the name of the files..my requirement is to delete corresponding files from arraylist when its deleted from lis
I think the constructor is logically correct, I just can\'t figure out how to call it in the main ! :) Can anyone help please ? If someone would just have a quick look over my code it would be nice :)
I have a ArrayList and I want to put a lot of strings into it (several hundred) but I don\'t want to 开发者_高级运维code around a huge list of .add()\'s and such. Can I important the strings from my s
Please show me optimized solutions for castings: 1) public static byte[] ToBytes(List<Int64> list)
I am writing an app that allows the user to create custom SQL queries with user input. I add the falue from each JTextFields to the array using
I want to search through an ArrayLst and delete any entries that are the same. For example if my list was: apple, orange, banana, pear, peach, orange,
I\'ve been given a description of how I am to implement a prime number generator using Java; but I\'m not sure if I am doing it properly. I was hoping someone could give me some general advice for how
This is getting made in a static void method in the main class. (class being used for input). private static void Input(ArrayList list)
It is very common to initialize list by array of objects in such way: Foo[] objs = ...;开发者_运维问答