No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
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 …
[QUOTE=anand01;1688942]Is this possible to remove element by its index value?[/QUOTE] That is easy, after you made your ArrayList object (yourArrayList in this case) just do: [CODE]yourArrayList.remove(index) // index of tipe int[/CODE]
In means that you are trying to remove an item that does not exist
[CODE] Scanner input = new Scanner(); yourInput = input.nextInt(); String temp = Integer.toString(yourInput); if(temp.length()<5) { //Do what you want } else { System.out.println("ERROR"); } [/CODE] And in case you want to have the same input as an int after the check, insert this after the if: [CODE] yourInput = Integer.parseInt(temp); …
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 …
i find it quite enjoyable to be like a god, controling a universe the way i like, because that is what programming is (for me at least), i make my own world
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]
I've seen a lot of comments on the net comparing dennis's death to that of steve jobs, where steve received many more farewells but not doing even half of what dennis did, and i agree. RIP Dennis
got mine when I was 19
of course it is right... one that takes the life of another deserves the same punishment
Hello, I'm new here :). I hope I can bring some contribution to the site
The End.
geekman89