Samet Kilictas’s Blog

Tag: ArrayList

Example Code #1 – JOptionPane and ArrayList

by Samet Kilictas on Dec.20, 2008, under Java, Programming

Here this class takes some values using JOptionPane.showInputDialog and shows them to the user using foreach loop

import java.util.ArrayList;
import javax.swing.JOptionPane;

public class Confirm {

ArrayList fruits = new ArrayList();

Confirm(){
String value = "";
while (true){
value = JOptionPane.showInputDialog("Which fruit to Add?");

(continue reading…)

VN:F [1.0.6_327]
Rating: 4.0/10 (3 votes cast)
Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...