Your array length is set to 15, but you have 19 values?
Type: Posts; User: Leklur
Your array length is set to 15, but you have 19 values?
It looks to me that you've been using the WindowBuilder plug-in for Eclipse or NetBeans.
Sorry for the late reply, but here's the easiest way to do it. I don't have much time right now, as i'm in class, so I had to make this short.
class Marry{
public static void main(String...
Personally, I don't like using JLabels in the format you used. I would normally use them like this
JFrame frame = new JFrame();
frame.set(new JLabel("Hi"));
but to make the format you used...
I went ahead and spent about 5 minutes making this quick example for you. I used an ArrayList.
For this example, I used Adam Sandler(actor) and gave him two random roles(CIA Agent, and Police...
What do you mean by filter? I would use if-then statements from what you're making the program
You didn't create a scanner. Try this
import java.util.Scanner;
public class Main {
public static void main(String []args){
Scanner scanner = new Scanner(System.in);...