All pastes #948364 Raw Edit

Someone

public java v1 · immutable
·published 2008-03-19 02:01 UTC
rendered paste body
import javax.swing.JOptionPane;public class Listmaker {	public static String[] fullList = new String[10];	private static int v;	private static int m;	public static String fullMessage = "Your List (" + fullList.length + " items long):\n";		/*	 * TODO: Implement a user choice for either a text box in which they can copy their list, or a message	 * telling them their list.	 */		public static void main(String args[]) {		for (v=0;v<fullList.length;v++) {			String tempQuestion = JOptionPane.showInputDialog("Enter your value for the #" + (v+1) + " list item.");			if ((tempQuestion != null)) {			fullList[v] = tempQuestion;			}			else {				break;			} //END else		} //END  for				if ((v<fullList.length) == false) { //Find non-identity operator. * -> bool false		for (m=0;m<fullList.length;m++) {			if ((m+1)==fullList.length) { //If you are on the last element of the list, then				fullMessage+="- " + fullList[m];			}			else {				fullMessage+="- " + fullList[m] + "\n";			}			}//END for				JOptionPane.showMessageDialog(null, fullMessage);		} //END if						} //END main()			} //END class