Member Avatar
I have the following javascript code ... And the following code to verify for regex pattern: ... What can I do to all columns be verified for the date pattern? Making the array date stay only with the values 2014-12-31 12:23:43,1980-12-30 23:43:42,1978-05-21 23:43:65,1973-04-06 12:34:09
by jean_5 in Web Development ()
Member Avatar
Hi, Am trying to display all the items inside a ArrayList, but without using the cfloop. Could someone help me on this !!!! Its urgent.... Actually my issue is am trying to call a Javascript function within the loop of that arraylist. I can do that using Cfloop, but its …
by aksahoo17 in Web Development ()
Member Avatar
Hello, I've been trying to read txt from a file, and breaking each line into words and storing them in Array. Example. txt file C001 John Smith 999999 C002 Mary Agnes 888888 Here is my code. Can anyone help me because I haven't found what I'm looking for with my …
by DawnofanewEra in Software Development ()
Member Avatar
I'm making a student system with console based java. I'm trying to load a text file's content to an ArrayList and later on search with a student registration number and list down his/her name and program. I'm having a hard time loading the text file contents in an ArrayList so …
by momal in Software Development ()
Member Avatar
I have been learning about the collections namespace in C# so have been doing some little self-made projects to learn. I have made a car race app where you enter in the name, car and place of the racer this is then stored in an array list. I can extract …
by iConqueror 27 in Software Development ()
Member Avatar
If I have an array and an array list: By calling the Addrange() method in myArrayList, does this add the contents of myArray to the second element of myArrayList? If so how do you access the second element of myArray through myArrayList?
by iConqueror 27 in Software Development ()
Member Avatar
with the coding above, i can search and display all string in my arraylist that contains "hit2080". for example HIT2080___Introduction to Programming___ALL___Core___NULL___NULL HIT1307___Internet Technologies___ALL___Core___NULL___HIT2080 but i just want to search and display the first token that contains string "hit2080". Is there any way to get the first token?
by sing1006 -5 in Software Development ()
Member Avatar
I know with Lists you can instantiate them to an ArrayList, but is this generally a good idea? Is it better to do 'List<?> list = new ArrayList<?>();' rather then 'ArrayList<?> aList = new ArrayList<?>();'?
by Doogledude123 45 in Software Development ()
Member Avatar
Hi I have been told that it is possible to call an ArrayList Method in a WebService from a console App. [Method] " public ArrayList AuthenticateUsers(string username, string password, string IncomingIP, decimal Pin) " [call] Service1 serv = new Service1(); ArrayList ar = serv.AuthenticateUsers("test", "12345","192.168.0.5", 29); Error Cannot implicitly convert …
by GrantB in Software Development ()
Member Avatar
Hello good afternoon. I have successfully serialized data in the past, however it seems as if I don;t fully understand the process. I have a class called ProgramState which stores a variable (called lastCreated) with custom class LinesProject and an ArrayList variable(called recentProjects) of this custom class. The purpose of …
by CoilFyzx in Software Development ()
Member Avatar
So this is what i dit. Declared three classes: Main Term Polynom So in Polynom i try to call a "plus" method: i tried this: And I am facing a problem : I reffer to an object this and iam getting into an other object which is a this too. …
by anestistsoukalis in Software Development ()
Member Avatar
Hi, I have a quick question. I am making a hang man game for project (I am at university as a computer science major), I have completed most of the game but have run into one small issue which has been given me a big problem. Right now I am …
by infiniteloop56 in Software Development ()
Member Avatar
My assignment is to create a program that asks the user what they want to do: 1-add a member, 2-delete a member, 3-see the arraylist of members, or 4- exit. I have the menu popping up, but I can't get it to go back to the menu after I execute …
by sweetdame22 in Software Development ()
Member Avatar
Hi All, I have a question. Is adding/filling range numbers to an ArrayList possible in java?? Like this: You can think of these like time segments. Here is the class to give you brief idea
by jakubee in Software Development ()
Member Avatar
I need help making this to display the results into a Jframe GUI instead of a console im failry new to java so please help me thanks, here is the code ive used:
by ccsj2206 in Software Development ()
Member Avatar
Hello. Im new here. I have a question: I have this copy constructor here: I want to ask how do I implement this: Thank you for your help.
by noobCode in Software Development ()
Member Avatar
You will need to check that the four parameters entered by the user are blank, so you will do the same as you did before but four times. To Identify if the User Presses <enter> You have written a JAVA program that creates a CD object with four instance variables, …
by leah.s.h in Software Development ()
Member Avatar
Hey everyone, I want to add action listeners to JButtons that were created dynamically by an ArrayList. Here is the code for the button creation. numOfCourse = 6; So how can i refer to these buttons because they themseleves don't have a referance. Here is one way: . This works, …
by milkman93 in Software Development ()
Member Avatar
Hey Fellas, I created 10 JTextFields using and ArrayLists: What I need to do: I need to get the values of what ever the user puts into the JTextField(s) and total the inputs and assign them to a variable. This is what I have so far: I know the code …
by milkman93 in Software Development ()
Member Avatar
Hey Everyone, I want to instantiate an ArrayList in java. I realize the method to doing this is: Where "A" is added to the arraylist once created. However, the problem I'm having is that the .add method doesn't work unless in a main method. What is the santax for making …
by milkman93 in Software Development ()
Member Avatar
Hey I'm trying to add pairs of numbers into an array by placing them into objects then putting the objects into the arrays but I seem to be having a problem with some part of my code. When I run the following example I just get the following back : …
by pilik in Software Development ()
Member Avatar
I have the following code which is in a class called customerModel. How do I call this method to another method inside another class called customerController? I am abit new to this and have been trying for ages but have had no luck. Please help thank you. The above code …
by officallysabbir in Software Development ()
Member Avatar
Hey guys I'm having a bit of touble assigning the toString to a string from an index of an array list, any help would be appreciated. I keep getting an error in line 9 [array required, but java.util.ArrayList found] any help ? Thanks in advance
by fonzi in Software Development ()
Member Avatar
I Basically wanted to take an input and store it into a 2D Array called mat with a 3x3 size so i tried taking an input string, convert them into char and then sotring them in an array list and this is what i wrote so far. The output of …
by Noopit in Software Development ()
Member Avatar
Hi, I am currently making an assignment for JAVA, but I get stuck at the following. I need to make a simulation of a shop where a customer puts objects in his "basket" and with that basket you go to the checkout counter. Now we have to make it possible …
by TheMrPatrick in Software Development ()
Member Avatar
Hey guys i am in trouble about BST Tree exercise.. i need to create an array that can take number of elements user want and the user has to enter integers but the program need to get this number in one line ... Here is code that i already wrote …
by serdar.ilarslan in Software Development ()
Member Avatar
Hi. I have a little problem with my code. I want to cast a complete arrayList to a different type, but java wont let me... Here is a compressed version of what is happening: //The interface I use. public abstract interface Drawable{ //some methods } //A class that is supposed …
by Cort3z in Software Development ()
Member Avatar
The code above compiles fine with: a. b. but not with c. What is the reason? When we assigned ls to o, didn't Object o become an array?
by rahul.ch in Software Development ()
Member Avatar
Hello all. So I have a little problem with my school project. We are to create a snack machine with cookies and mints and interact with it using a GUI. We click the add Mints or Cookies button to add to the 'Snack Machine' and then click buy to purchase …
by tingwong in Software Development ()
Member Avatar
Let's say I have an array/arraylist(doesn't matter) with the following content: 2, 2, 2, 4, 5, 5, 8, 8, 8. How wold I go about counting the different values, in other words; how would I find out that there are 3 twos, one 4, 2 fives and 3 eights. How …
by efth in Software Development ()