View Single Post
  #8 (permalink)  
Old 10-12-2006, 05:35 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,569
Last Blog:
Tidy up your HTML
Credits: 0
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

im pretty new to java but for an input box i woud do something like this...
Code:
UserInput = new javax.swing.JOptionPane().showInputDialog("Enter a value");
and since the input is a String use, you need to convert it to int inorder to perform mathamatical operations on it, so possable something like

Code:
x = Integer.parseInt( UserInput );
then just use a for loop to do the iterations

but i know very little regarding java so dont quote me
Reply With Quote