Search:

Type: Posts; User: HappyCamper

Search: Search took 0.11 seconds.

  1. Re: need help telling if a word or phrase ins a palindrome in java

    how would i write that...just leave an empty space?
  2. Re: need help telling if a word or phrase ins a palindrome in java

    so what exactly would i put inside the if statement?
    i know it would be
    if(original.charAt(i)==" ")
    {
    (What would go here?)
    }
  3. need help telling if a word or phrase ins a palindrome in java

    my code works but only for words...How could i make my code so it can also tell if phrases (such as taco cat) are palindromes.


    package Homework5;
    import java.util.Scanner;

    class HW5
    {
    ...
  4. Re: Need help placing mines and another point on a field!!

    hmm im thinking....how would i assign the number of locations randomly to mines? thats what im having trouble with haha
  5. Re: Need help placing mines and another point on a field!!

    sorry i know my variables are a bit confusing but would i just have to randomize the number of mines? would i have to create a public static final int of 10? since the board is 10 by 10
  6. Need help placing mines and another point on a field!!

    i need to fill up 1/10th of the board with mines but i am only able to successfully put 1! also my goal is not showing up on the game even though i put it as an up arrow.



    package Homework4;
    ...
  7. How do I just read a users input back out to them?

    i need to output the unsorted array as well as the sorted array...the sorted array works but i can not get the unsorted array to work. please help!




    package Lab7;

    import java.util.Scanner;...
  8. if-else statement not working and dont know why

    My if else statement is not working...it keeps telling me that the else in the statement is a syntax error and that I should remove it. Whats wrong with it?


    package Homework2;
    import...
  9. Re: Simple Password checker into JOptionPane help!

    okay this is what i have at the moment....

    package Homework1;
    import java.awt.Component;

    import javax.swing.JOptionPane;
    //I had to use scanner in this program because I had to create objects...
  10. Re: Simple Password checker into JOptionPane help!

    alright this is what i have now....


    package Homework1;
    import java.awt.Component;
    import java.util.Scanner;

    import javax.swing.JOptionPane;
    //I had to use scanner in this program because...
  11. Re: Simple Password checker into JOptionPane help!

    I ran it and it came up as a dialog box but i also had to input my password and username into the console instead of the dialog boxes. How would i do without Scanner?
  12. Re: Simple Password checker into JOptionPane help!

    alright i did that and i think it is right! could you run it for me yourself and see if it is right?

    package Homework1;
    import java.awt.Component;
    import java.util.Scanner;

    import...
  13. Simple Password checker into JOptionPane help!

    So i have this source code...


    package Homework1;
    import java.util.Scanner;
    //I had to use scanner in this program because I had to create objects that were in the Scanner class, such as in...
  14. Re: Need help with programming a simple password checker.

    actually I think I may have fixed it! can anyone check to see if this works for them?

    package Homework1;
    import java.util.Scanner;
    //I had to use scanner in this program because i had to...
  15. Re: Need help with programming a simple password checker.

    My assignment is this :

    Use Java to write and run a simple console-window program for checking passwords. The program must satisfy the following requirements:
    · When the program runs, it should...
  16. Re: Need help with programming a simple password checker.

    what do you mean loop fashion? I am very very new at this (like a week into class) so we haven't gone over all of this yet. I am trying to understand but damn am I confused haha

    --- Update ---
    ...
  17. Re: Need help with programming a simple password checker.

    So are you saying I should just get rid of the public static boolean stuff?

    --- Update ---

    I am so confused now :(
  18. Re: Need help with programming a simple password checker.

    would i just store the correct password by using String password1 = "password";

    --- Update ---

    I created it so that i can now any 1 character and the password is right but i dont know how to...
  19. Re: Need help with programming a simple password checker.

    package class1;
    import java.util.Scanner;
    //I had to use scanner in this program because i had to create objects that were in the Scanner class, such as in row 17.
    // The password to this...
  20. Re: Need help with programming a simple password checker.

    Hello Ada! I was wondering if you could type out a simple draft of what you are trying to tell me haha I'm sorry but i'm a huge noob at this and i do better with seeing :)
  21. Re: Need help with programming a simple password checker.

    How do I go from typing in the username to then typing in the password because every time i type in the username it gives me an error
  22. Re: Need help with programming a simple password checker.

    i am very new at this haha youre going to have to go over this with me..i mainly am using ints because that is what we have learned so far haha
  23. Re: Need help with programming a simple password checker.

    okay i updated my post
  24. Need help with programming a simple password checker.

    Use Java to write and run a simple console-window program for checking passwords. The program must satisfy the following requirements:
    · When the program runs, it should first print its name,...
Results 1 to 24 of 24