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;
Type: Posts; User: Ludus
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;
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();
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...
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....
Thought I posted the compiled version. I will fix and edit it.
I believe that's how you asked.
There is the whole code
import java.util.*;
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....