What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-29 18:05:15
how to detect if someone clicks on a jpanel in java
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TestFrame extends JFrame{ public TestFrame(int size){ JPanel content = new JPanel(new GridLayout(size, size)); JPanel[] panel = new JPanel[size * size]; ... Add solution -
Other 2021-10-29 10:28:11
How do you move through a Huffman tree? Select one: a. 0 = right 1= left b. 1 = left 2 = right c. 0 = left 1 = right d. 0 = middle 1 = back
// Huffman Coding in C++ #include <iostream> using namespace std; #define MAX_TREE_HT 50 struct MinHNode { unsigned freq; char item; struct MinHNode *left, *right; }; struct MinH { unsigned size; unsigned capacity; struct MinHNode **... Add solution -
Java 2021-10-28 14:06:07
how to divide coloumns in a text file into seperate arrays in java
Scanner scanner = new Scanner(new File(file)); ArrayList<String> animalData = new ArrayList<String>(); while (scanner.hasNext()) { String[] columns = scanner.nextLine().split("/t"); String data = columns[columns.length-1]; ... Add solution -
C++ 2021-10-23 02:33:08
length of each number in array
const int SIZE = 9; int arr[SIZE], arr2[SIZE]; cout << "Enter numbers: \n"; for (int i = 0; i < SIZE; i++) cin >> arr[i]; for (int i = 0; i < SIZE; i++) cout << arr[i] << "\t"; cout << endl... Add solution
Best helpers
Kyle Smith
+5
JSanchez
+5
Larapsodia
+5
TJG
+5
Sharma Pocso
+5
Wilber82
+5
T-rex
+5
Seria Yin
+5
Winny
+5
Jlund3
+5
Laura Stiehl
+5
Sikku
+5
AlecPerkey
+5
The Alpha
+5
IQAndreas
+5
TeacherSue
+5
Doe John
+5
Wayno
+5