Search:

Type: Posts; User: Ludus

Search: Search took 0.28 seconds.

  1. Replies
    1
    Views
    137

    Cant get the correct print out just once.

    import java.util.*;

    public class LetCount
    {

    public static final int NUMCHARS = 26 + 1; //You define

    public static int addr(char ch)
    {
    return (int) ch - (int) 'A' + 1;
  2. Replies
    5
    Views
    119

    Re: Confused on Arrays

    I have edited my code and dont understand why it doesnt work.



    import java.util.*;

    public class Shuffle
    {
    public static int[] RandomizeArray(int[] array){
    Random rgen = new Random();
  3. Replies
    5
    Views
    119

    Re: Confused on Arrays

    I have it to where it will compile now. I am just confused as to the syntax in being able to implement my RandomizeArray and the users input in the main. I know this is a simple task but Im new and...
  4. Replies
    5
    Views
    119

    Confused on Arrays

    I am trying to do a shuffle program where I randomize a group of numbers and print them out so none repeat. I have the randomization right just not sure how to implement a users input with an array....
  5. Replies
    8
    Views
    317

    Re: Why is this in an infinite loop?

    Thought I posted the compiled version. I will fix and edit it.
  6. Replies
    8
    Views
    317

    Re: Why is this in an infinite loop?

    I believe that's how you asked.


    There is the whole code




    import java.util.*;
  7. Replies
    8
    Views
    317

    Why is this in an infinite loop?

    Im new to this site so the format of this post may be sub par. I have been working on this code and I cannot seem to figure out why when option one is chosen it asks for the number and does nothing....
Results 1 to 7 of 7