converting python to java

Reply

Join Date: Apr 2005
Posts: 8
Reputation: shak187 is an unknown quantity at this point 
Solved Threads: 0
shak187 shak187 is offline Offline
Newbie Poster

converting python to java

 
0
  #1
Apr 27th, 2005
hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much apprieciated or can ne1 give me some complted java code to look at
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 8
Reputation: shak187 is an unknown quantity at this point 
Solved Threads: 0
shak187 shak187 is offline Offline
Newbie Poster

Re: converting python to java

 
0
  #2
Apr 27th, 2005
this is a part of the program that i am having problems with can someone please help me
while (start)
{

carryOn = true; //=== LOCAL VARIABLE ONLY USED INSIDE MAIN-LOOP
String s;
JOptionPane.showInputDialog(null, "pick a number betweeb 1 and 100");
math.random();
int num = Integer.random(LOWER_EASY, UPPER_EASY);
// print "For testing purposes the num generated is:",num
guess = getGuess(FIRST);
numGuesses = 1; // number of guesses made in this game
numGoes += 1;
}
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: converting python to java

 
0
  #3
Apr 27th, 2005
  1. numGuesses = 0
  2. while (start)
  3. {
  4. boolean carryOn = true;
  5. String s;
  6. int guess = Integer.parseInt(JOptionPane.showInputDialog(null,"pick a number between 1 and 100"));
  7. int num = Random.nextInt(UPPER_EASY-LOWER_EASY)+LOWER_EASY; //range between LOWER_EASY and UPPER_EASY
  8. System.out.println("For testing purposes the num generated is: "+num);
  9. numGuesses++;
  10. }
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 8
Reputation: shak187 is an unknown quantity at this point 
Solved Threads: 0
shak187 shak187 is offline Offline
Newbie Poster

Re: converting python to java

 
0
  #4
Apr 28th, 2005
thank alot really helped me out
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 8
Reputation: shak187 is an unknown quantity at this point 
Solved Threads: 0
shak187 shak187 is offline Offline
Newbie Poster

Re: converting python to java

 
0
  #5
Apr 28th, 2005
the coding didnt work im still gettting errors would u like too see the full program?????
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: converting python to java

 
0
  #6
Apr 29th, 2005
I don't know Python, so anything python specific I can't really help you out with. Are you having trouble with syntax or just finding the proper relative commands?
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 8
Reputation: shak187 is an unknown quantity at this point 
Solved Threads: 0
shak187 shak187 is offline Offline
Newbie Poster

Re: converting python to java

 
0
  #7
Apr 29th, 2005
its the latter im jus conmfused on it thanks anyway
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC