Search Result

Collapse
2 results in 0.0014 seconds.
Keywords
Members
Tags
hashmap
  •  

  • Looping over Character ArrayList and replacing characters with values from a HashMap

    So has the title says I need to find a away to loop over a Character ArrayList and replace the characters with a values from a HasMap.


    This is a simple encryption but I can't figure it out. What I have to do is get the distinct characters from the text that's been passed in and then assign values to them using a HashMap. I've done that. Also in front of the file there should be the number of distinct characters and the distinct...
    See more | Go to post

  • Printing array of references to hash maps (perl newbie)

    Good Morning!

    I am a perl newbie and I think that I am struggling with references.

    I have an array of references to hashes which I am trying to print. This is what I have:

    Code:
    	for(my $i=0; $i<@input; $i++){
    		my $hash = $input[$i];
    		print "$i: \n";
    		print "\t".'$hash = ';
    		print $hash;
    		print "\n\t".'${$hash} = ';
    ...
    See more | Go to post
Working...