mutation
string manipulation- middle 3 letters
After prompting for a string, I am trying to display the middle three characters of that string. How would I do that?[详细]
2023-03-09 15:15 分类:问答Simple string mistake
I am trying to create a string method in java where it prompts someone to enter a string longer than three characters. Once entered, I want to display the middle three characters of that string. Somet[详细]
2023-03-09 15:12 分类:问答Can mutator methods be applied to objects in an ArrayList?
I\'m having some trouble with my java program and I\'m not sure if this is the problem but would calling a mutator method on an object inside an araylist work as intended?[详细]
2023-03-08 19:44 分类:问答Applying mutation in steady-state genetic algorithm
I’m implementing a steady-state genetic algorithm to perform symbolic regression. My questions are about the relation between mutation and crossover operators.[详细]
2023-02-17 15:58 分类:问答In Java/Swing, is there a way to legally "attempt to mutate in notification"?
I was wondering if there is some sort of magic I can use to get around an IllegalStateException and allow a JTextField to \"attempt to mutate in notification\", or in other words to 开发者_如何学Cset[详细]
2023-01-14 07:12 分类:问答applying crossover and mutation to a graph (genetic algorithm)
I\'m playing arround with a Genetic Algorithm in which I want to evolve graphs. Do you know a way to apply crossover and mutation when the chromosomes are graphs?[详细]
2023-01-06 05:42 分类:问答Why not allow mutation of the this binding?
I\'m building a interpreter/compiler for a school project (well now its turning into a hobby project) and an instructor warned me not to allow mutation of the \'this\' binding (he said it was gross an[详细]
2023-01-03 10:26 分类:问答Why don't lazy languages support mutation?
I\'m stud开发者_如何学编程ying programming language theory and I can\'t figure out a solid reason why lazy languages don\'t have mutation.Anyone know the reason?Laziness means that a function is not a[详细]
2023-01-01 18:45 分类:问答Explain JAVA code
I need some help to explain the meaning from line 5 to line 9. Thanks String words = \"Rain Rain go away\";[详细]
2022-12-23 06:54 分类:问答Scala objects not changing their internal state
I am seeing a problem with some Scala 2.7.7 code I\'m working on, that should not happen if it the equivalent was written in Java. Loosely, the code goes creates a bunch of card players and assigns th[详细]
2022-12-18 11:19 分类:问答