Search:

Type: Posts; User: rsala004

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,953

    Re: savings and loan society

    random link, stay away... -.-
  2. Replies
    3
    Views
    2,524

    Re: I have algorithm problem

    ah your right :)
  3. Replies
    2
    Views
    1,878

    Re: Need Help With Project

    I just edited my post incase you read it a few moments ago


    import java.util.*;


    public class MorseCodeProj
    {
    public String Conversion(String s1){
    String result = "";
  4. Replies
    3
    Views
    2,524

    Re: I have algorithm problem

    pretty clean ;]

    works

    wow im getting good at this ;] only took 5 minutes



    public class sublist
    {
  5. Replies
    9
    Views
    1,953

    Re: savings and loan society

    depending on the scope of the course you should likely not be expected to read from something such as an xls file.

    try saving xls as a .CSV file.

    Makes sheet turn into something like.
    ...
  6. Replies
    10
    Views
    29,272

    Re: Converting Hex to Decimal

    not sure if applicable or not, but this may spark an idea...maybe

    Decimal -> hex



    String[] allHex = new String[(16*16*16)-1];

    String key = "0123456789ABCDEFG";
  7. Replies
    9
    Views
    1,953

    Re: savings and loan society

    did you yourself put the data into the xls, or were you specifically told to put it in an xls file
  8. Replies
    1
    Views
    1,834

    Re: GuessWhat- same errors repeated 4 times?

    public static void getRandomNumber();
    {
    int min=50;
    int max=100;
    Random randGenerator= new Random();
    int randomNum=randGenerator.nextInt(max-min+1)+ min;
    System.out.println("Random number...
  9. Replies
    1
    Views
    1,756

    Re: McGeeLotto?????

    that code will not work, unless the user actually picks the numbers in the EXACT order that it is randomized.

    and also, most of the code is not even inside of a method, its just ...there.

    your...
  10. Replies
    7
    Views
    18,489

    Re: how do you leave a line space in java?

    you may have entered wrong slash, and typed it correctly here
  11. Replies
    7
    Views
    2,070

    Re: Help starting program, need done by Nov 4

    problem statement doesn't state that testscores are integers.
  12. Replies
    2
    Views
    2,797

    Re: why is this statement evaluating false??

    you should always use EQUALS when comparing strings.

    A String is an OBJECT, when doing String == String, you are asking computer to check if they are the same 'object'.

    for example:


    String...
  13. Replies
    7
    Views
    3,437

    Re: new program (lotto.class)

    another good revision, for cleaner code? (btw i also used to program like that...using ints as 'on/off' toggles to signify things, but i try to avoid it.

    Here we will redo the last while loop.

    ...
  14. Replies
    7
    Views
    3,437

    Re: new program (lotto.class)

    if (TotalNumbers < 2) {
    System.out.println ("error: Total number can not be less than 2");
    done = done +1;
    } else if (UserNumber > TotalNumbers){
    System.out.println ("error: your number can't be...
  15. Replies
    7
    Views
    18,489

    Re: how do you leave a line space in java?

    Characters (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)

    System.out.println("After copy method, is Date1 equal to Date2? \n");
    if (Date2.equals(Date1))
    ...
  16. Replies
    1
    Views
    5,892

    decimal to hex

    i just need to be able to convert a (maximum) 3 digit decimal number to hex

    Is this the best way to do it, or is there a simple way that i dont see?
    (excluding any built in hex functionality for...
  17. Replies
    1
    Views
    8,998

    Object array to int array?

    ArrayList<Integer> in = new ArrayList<Integer>();
    //fill arraylist......
    int[] out;


    When using the ArrayList method toArray() it returns Object[], how would I go about converting this to...
  18. Replies
    11
    Views
    13,816

    Re: Convert CHAR to STRING

    would


    String word = "" + sex;

    be considered bad code?
  19. Re: I need Help Creating A "for loop" for some really basic java code. Plz help

    you are going to have to use a for loop to move then a little bit at a time (each)

    I see 5 things here, 4 squares and a triangle
    boats 1 and 2, sails 1 2 and 3

    We can move it to the right...
  20. Replies
    5
    Views
    7,011

    Re: sieve of eratosthenes

    ^:)^

    thanks, i think thats exactly what i was looking for.

    but also with this sieve i think actually once you progress through 1 -> sqrt(n) you cover all non-prime multiples.
  21. Replies
    5
    Views
    7,011

    sieve of eratosthenes

    ....................
  22. Replies
    11
    Views
    2,840

    Re: Any ideas for begginer?

    as mentioned project euler goes into the math and such, which isn't a bad thing but I think its more for people looking to improve their skill rather than learn basic syntax...for example lots of...
  23. Replies
    3
    Views
    2,280

    Re: Iterator, with ArrayList

    xD

    I found a solution a little while ago :O

    by setting the type of the iterator, didnt know i could do it.



    Iterator<word> itr = words.iterator();
  24. Re: Average program with array and loop and JOptionPane.

    int[] array = new int[numberOfGradesString]

    found String, expect int.

    try using Integer.parseInt(numberOfGradesString)


    int[] array = new int[Integer.parseInt(numberOfGradesString)]

    ---
  25. Replies
    3
    Views
    2,280

    Iterator, with ArrayList

    I get compile error when trying to use method of something i got off iterator.next()

    first off, I have a class named word, it has a method called getWord which returns a String.



    import...
Results 1 to 25 of 33
Page 1 of 2 1 2