Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for abhinavxyz
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #289778 | Initial revision | — | about 1 year ago |
Question | — |
How do I remove an element from a Java array? One way to remove element from array is to replace element with zero. Below is a rough snippet I am sharing: ```java int N = sc.nextInt(); int pos = sc.nextInt(); int A[] = new int[N]; if(pos == i) { A[i]=0; } ``` But the problem is that size of the array remains the same still. You ... (more) |
— | about 1 year ago |