What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-12 09:24:02
compare two arrays and remove not matched objects
If you're looping over array1 with i = 0, len = array1.length; i < len; i++, but within the loop you remove an entry from array1 what do you think happens on the next loop? You also appear to be removing things that are found, but your question say yo... Add solution -
Python 2021-09-08 23:59:02
tkinter not a loop
from Tkinter import * ROOT = Tk() LABEL = Label(ROOT, text="Hello, world!") LABEL.pack() LOOP_ACTIVE = True while LOOP_ACTIVE: ROOT.update() USER_INPUT = raw_input("Give me your command! Just type \"exit\" to close: "... Add solution -
Other 2021-09-03 20:49:01
Generate 10 verification codes of length 4 and print them, e.g.,
#random package to find random integer import random #This method returns a random value of given length #len - parameter determines the length of the random value def random_value(len): result = '' #len decrements with each iteration #Hence... Add solution -
Java 2021-09-02 17:22:01
Loop Structure in Java
numbers = new int[10]; numbersResult = "The resulting numbers inside Do While loop are:\n"; count = 0; while (count < 10) { numbers[count] = (int) (count*8.87); numbersResult += "number " + String.valueOf(numbers[count] + "\n... Add solution