3 questions
It's a code that uses generic stacksI keep getting a nullpointerception error like that.Below is the full code. } import java.util.*;class GStack<T> {static int top;Object [] stck;public GStack(...
package myfirstjava;import java.util.ArrayList;import java.util.Scanner;import java.util.StringTokenizer;class GStack<T> { static int top; Object[] stck; public GStack() { top = 0; stck = new ...
void insert (int a, int b[], int index) { b[index] =a;}void insert (char a, char b, int index) { *(b+index) = a;}The goal is to make these two functions generalized generic functions, but I don't unde...
© 2024 OneMinuteCode. All rights reserved.