Jump to content

Sigmahokies

Members
  • Content count

    21
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Sigmahokies

  • Rank
    Newbie
  1. do and while loop

    Hi ingolme, Don't worry about it now, I found a way to make do...while loop works! Thanks.
  2. do and while loop

    Are you talking about method that above of all must inside like public void (args) {}? all code are inside args already. If you want, I can show you a full of source in Java.
  3. do and while loop

    NetBean. It shows highlight error in do and while line. I checked the method has been correct, but it won't do loop. all method and compare are inside, I wrote code after parameter. Java source said while accept != as not equal. isn't that strange? I know what method is. I have been learning about OOP already, I am moving into intermediate level now.
  4. do and while loop

    Then tell me what is wrong with those codes?
  5. do and while loop

    Hi everyone, this is my second thread, I hope you can help me why do and while won't do loop as I put them in... public class GameGuess extends Thread { int a; public void Send(int a) { this.a = a; } do { int p1 = (int) ((Math.random() + 5) * 10); int p2 = (int) ((Math.random() + 5) * 10); System.out.print("Player 1: " + p1); System.out.print("Player 2: " + p2); if (p1 != a) { System.out.print("Player 1 get wrong guess."); } else if (p1 == a) { System.out.print("The Player 1 wins!"); } else if (p2 != a) { System.out.print("Player 2 get wrong guess"); } else if (p2 == a) { System.out.print("The Player 2 wins!"); } } while (p1 != a || p2 != a);
  6. trying to prevent repeat random number in array

    Hi justsomeguy, Yes, i am trying to set up the random between 50 and 60, but not in order. I am trying to create the game. I want to have player 1 and player 2 making a guess number, if it is not match the secret number, then store into array to make sure player 1 and player 2 can't repeat number (like program can check to see if number is exist in array, then guess number that does not exist in array), until player 1 or player 2 make match the secret number to win. Hey, Please be patient with me if my grammar in english is terrible, because I am fluent in ASL. Thank you so much!
  7. Hi everyone, I am beginner ti learn Java, I am trying to stop the repeat number in array, but it won't work. Anyone who have idea? it will be appericate...here my code to create random number that between 50 to 60, then put in 10 array, but few number are repeated... int [] myArray = {0,1,2,3,4,5,6,7,8,9}; int pop = 0; for (int i = 0; i < myArray.length; i++0 { pop = (int) ((Math.random() + 5) *10); for (int j = 0; j < myArray.length; j++) { if (pop != MyArray[j]) { myArray[j] = pop; }
  8. while with checkbox

    which query that I made error?
  9. while with checkbox

    Hi everyone I am trying to create the one table columns (I will do multiply columns later) with checkbox, it is good for people who show up for meeting or activity. I am trying to make a check that post in next below from checking chart, but it won't post at all, what did i do wrong? Can you help me? Thanks, Gary </table></fieldset></form><h2>Checbox works with database</h2><form action="portfolio.php" method="POST"><table><?php $list = "SELECT ID, FirstName, LastName FROM sample";$list2 = mysqli_query($connect, $list); if (mysqli_num_rows($list2)) {while ($row5 = mysqli_fetch_assoc($list2)) {echo "<tr><td>".$row5['FirstName']."</td><td>".$row5['LastName']."</td><td><input type='checkbox' value='".$row5['ID']."' name='check'></td></tr>";}}?><tr><td colspan="3"><input type="submit" name="check3" value="who showed up"></td></tr></table><table><?php if ($_POST['check3']) {$check = $_POST['check']; if ($check) {$select = "SELECT FirstName, LastName FROM sample WHERE = ID '%".$check."%'";$run = mysqli_query($connect, $select); if (mysqli_num_rows($run)) {while ($ran = mysqli_fetch_assoc($run)) {echo "<table>";echo "<tr><td>".$ran."</td></tr>";echo "<table>";}}}}?></table></form>
  10. Paid share hosted or Virtual Private Server?

    Oh well, I need a something that allow remote database access, I'm sure only Paid hosted website and VPS are allowed, none of free website do that. I just want to start to work with database to create a portfolio website that show I can work in PHP and Database Management in PHP. Also, I will like to practice on CSS. I have VPS, but it is not really good cooperate with me. I am planning to cancel it if it continue stubborn. Gary
  11. I want to see your opinion about website Which is best to sign up for create website in OS: Paid share hosted (GoDaddy.com, i-page.com, atspace.com, etc) or Virtual Private Server? Please let me know ASAP Thanks! Gary
  12. Random Poker card

    Oh cool, it worked, it is in JavaScript, right? Can i make an image in this script? But why i get "undefine of shade", "undefine of heart"...I will like to remove this "undefine" Thanks!
  13. Random Poker card

    Hi everyone, I am trying to find source or tutorial how to create the random. I will like to learn how to create the random in poker card, but i need to make sure it must show the display that card is used. For example, I click on back of card to draw card, then show number or royal on card, then click it, moved to left-top or right-top to keep tracking those random poker card...do you have any idea? those card can't be repeated. Thank you so much
  14. Transition color font with background in same time

    I found the solution, I solved it...I just found the default set must not set as color, or it won't work. so, I put color font in tag letter, id, or class...not * in beginning of CSS document. Thank you for your time, Ingolme
  15. Transition color font with background in same time

    Oh, I made mistake in this trend, but I did put period (.) in sec - 0.7s still not working.
×