wait I got it thank you =DDDDDDDDDDDDDDDDDDDDD YAY ITS FINISHED AFTER HOURS. THANK YOU . YOU ARE A LIFE SAVER.
Type: Posts; User: valenciajv
wait I got it thank you =DDDDDDDDDDDDDDDDDDDDD YAY ITS FINISHED AFTER HOURS. THANK YOU . YOU ARE A LIFE SAVER.
I tried that and it didnt work. =(
This is my code so far. My last thing I need and don't know how because my teacher logged off is to print the median number. The double med = median(nums); needs to be printed and I need help. It...
O ok. I am sorry. Is it ok to post new threads on here if I have a new program?
So I got this far and its terrible. I really don't know what to do. Can someone help me? I know there is alot of if statements and messed it up. I am using JOptionPane
I am trying to create a...
The only reason why I don't want to use a loop is because my teacher doesn't want us to use a loop. =(
I barely joined this website today and I am still getting use to it. When I paste my code in do...
So I got this far
import javax.swing.JOptionPane;
public class GuessingGame {
public static void main (String [] args) {
int num1 = (int) (System.currentTimeMillis()%10);
String...
Does this make a random number between 1 and 10?
I never exactly knew how this one works cause I would get zeros as well. Can you help?
int num1 = (int) (System.currentTimeMillis()%10);
It said process completed. =D
Thank you.
I am not done with the whole thing yet. Time to resume my homework. =D
I guess that would make sense to convert into an int.
How about this?
String answerString = JOptionPane.showInputDialog(null,"Guess a number between 1 and 10");
int answer =...
They are this
int num1 = (int) (System.currentTimeMillis()%10);
String answer = JOptionPane.showInputDialog(null,"Guess a number between 1 and 10");
Hi I just had a quick question. I have this code
if (answer > num1)
JOptionPane.showMessageDialog(null,"Your answer is too high");
else if (answer < num1)
JOptionPane.showMessageDialog(null,...
Write a program that generates a random number between 1 and 10, then asks a player to guess your number. The player should be given three tries to guess your number.
Each time the player guesses,...