This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main () | |
{ | |
int randomArray [] = new int [100]; | |
Random num = new Random (); | |
for (int i = 0; i < 100; i++) | |
{ | |
randomArray[i] = num.nextInt(100); | |
if (randomArray[i] < 10) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### In main model | |
# for each Beer object, there are some number 0-50 individual review objects, listed | |
# in the Tastes model | |
# For my "beer list" in my view, i need to search the child reviews, looking for particular | |
# phrases and return the results | |
# | |
# Any suggestions? | |
### | |
class Beer < ActiveRecord::Base |