No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I usually listen to music while I'm browsing here, what are you listening to right now? EL-P - Fantastic Damage |
|
Hello everyone, here is what I'm trying to do: I want to create a multidimensional array of this form: [CODE]Array([0] => a, [1] => Array([0] => Array([0] => d, [1] => e)), [1] => c, [2] => d))[/CODE] Where for every element in the array, another element or array is … |
|
Hello I want to make a GUI, and for it I need to use absolute positioning, since I want each element to have a precise position within my frame. I am making each element that makes up the frame by extending JPanels, so I'm building each block within the window … |
|
Re:
Hello. I want to ask you all how to remove an element from an arraylist? Let's say the arraylist is made of the Integer elements: 23, 43, 40, 10; I want to remove the number 43. How do I do that? And don't tell me arraylist.remove(1); because this removes the … |
|
Re:
[code]//This is the coding that I have done in delete item private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here int selectedIndex = jList1.getSelectedIndex(); jList1.remove(selectedIndex); }[/code] its throwing following Exception [code=text]xception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1 at java.awt.Container.remove(Container.java:1132) at musicplayer.jButton2ActionPerformed(musicplayer.java:144) at musicplayer.access$100(musicplayer.java:23) … |
|
Re:
Hi, I am making a program where the user has to input an integer with LESS than 5 digits. If he enters more than 5 digits, I want the program to print: "ERROR" How can I do that? I wrote this code till now. Do I have to use a … |
|
I want to make a class that takes a String and checks if that String is found in a .txt File. If it is found, I want to store the words following that String in a String array. Here is what I have until now: [CODE]import java.io.File; import java.util.Scanner; public … |
|
Hello I need help with a program I want to make a method that takes a String and uses the text in that String to use a method from an object. Something like this: public void doThat(String text) { myObject.text();// Where text is the actual text stored in the String … |
|
Hello everybody. I am in need of an answer. How can I use the text from a string and use it as a variable's name? For example: I have an array: int xyz[] = new int[5]; And say I want to check if it's name is the same as a … |
|
Re:
What is it that inspires you to continue programming every day or every week. Is it work or results or something else you would like to share. So please share as I'm sure this will be interesting. |
|
Please, please explain to me why this is giving me an error: [CODE]class bvo: C = 'Hello' def getC(self): return self.C bvo.getC()[/CODE] |
|
Re:
[url]https://plus.google.com/u/2/101960720994009339267/posts/ENuEDDYfvKP?hl=en[/url] [url]http://en.wikipedia.org/wiki/Dennis_Ritchie[/url] It is indeed a sad day when one of the true pioneers of the modern technological world passes away. C and Unix are such huge corner stones of everything around us (like the ability for me to write this, and you to read this), and have inspired so … |
|
Re:
Trust me, driving is not easy at all. You have to keep (your only two) eyes on all the gadgets in the car, other cars, pedestrians and traffic rules at the same time...These are those things that took me 12 months to get use to and finally get my driver's … |
|
Re:
Can you please give me one con and two pros on your opinion about death penalty? I say it's not right! I mean, come on! They are going to die a "peaceful" death while the person they killed was violently treated!!! I think they should give them all jail for … |
|