• Register

Recent questions tagged list

0 votes
1 answer 3 views
Problem: List is a type of ordered collection that maintains the elements in insertion order while Set is a type of unordered collection so elements are not maintained any order. Can anyone explain difference in detail?
asked 1 day ago Mashhoodch 1.8k points
0 votes
1 answer 10 views
Question: I need to display list of recipe titles based on the selected category. So what I need is to fill up the category dropdown list and then when I select any of the list, the table will show the recipes that is in that category. So I have two tables, one is the category table and ... /td> <td>Description xxx</td> </tr> <tr> <td>Dish 2</td> <td>Description xxx</td> </tr> </tbody> </table>
asked Nov 12 Grace Butan 340 points
0 votes
1 answer 16 views
Issue: Hello, I have a dynamic drop down list in php taken from the mysql database. The process was that when I opened the page, the php will fill up the dropdown list and then, I used the javascript to populate the second dropdown list after I selected the city from the ... ); } </script> Is there a way also that I can populate my first dropdown list using ajax when I open my page? Thank you!
asked Nov 10 Reina Joy 360 points
0 votes
1 answer 13 views
Problem: I have two ArrayList objects with three integers each. I want to find a way to return the common elements of the two lists Use Collection#retainAll(). listA.retainAll(listB); // listA now contains only the elements which are also contained in listB.
asked Nov 6 Mashhoodch 1.8k points
0 votes
1 answer 13 views
Problem: I am a new student in learning python and i am not sure how to check if a list is empty in python. For example, if the following is passed: a = [] How to check if it is empty?
asked Nov 5 Han Li 710 points
0 votes
1 answer 8 views
Problem: A list is an ordered sequence of objects, whereas dictionaries are unordered sets. However, the main difference is that items in dictionaries are accessed via keys and not via their position. shows the difference of list and dictonary in java
asked Nov 5 Mashhoodch 1.8k points
0 votes
1 answer 11 views
Problem: In general (and in Java) an array is a data structure generally consisting of sequential memory storing a collection of objects. List is an interface in Java, which means that it may have multiple implementations. ..but i want to understand more difference anyone can help me
asked Nov 4 Mashhoodch 1.8k points
0 votes
1 answer 14 views
Problem: I want to populate the employee dropdown list based on the position. It should be a list of the employees and their position. So I want to see see the employee name and then the position that this employee has done. Here's my php code. I don't know why it doesn't work. Can ... ">Cleaner</option>         </select>      <?php } ?>     <input type="submit" name="submit" value="Save"> </form>
asked Nov 2 RJ Lam 650 points
0 votes
1 answer 10 views
Problem: hello i am a newly candidate in java ptogramming . i think java all over is easy but some difficult concepts are occur i want to learn the how to read all files in java directory ,How do you give a directory path in Java?How do I create a directory path?
asked Nov 2 Mashhoodch 1.8k points
0 votes
1 answer 9 views
Problem: hi kodlogs: I was studying and practicing java these days regularly. I&rsquo;ve enrolled myself in an o to understand things in a better way. I think it&rsquo;s helping me a little bit more. Anyway, today I&rsquo;ve come up with another question java conversion
asked Nov 2 Mashhoodch 1.8k points
0 votes
1 answer 19 views
Problem: Can someone help me on how to make the value of the dropdown list highlighted when I open the php page? For example, the color that was saved in the database was 8, and I set the value to the dropdown list to 8. But when the page is loaded, the "Select color" still ...      while($record = $query->fetch_assoc()) {             $mycolor = $record["color_id"];         }                 } ?>
asked Nov 1 RJ Lam 650 points
0 votes
1 answer 12 views
Problem: Hi there! I have a list of strings and I want to initialize the list at the time of declaration. In other words, I do not want to use list.Add() method to add items to the list. Can I initialize a list with values at the time of declaration? If yes, what is its syntax?
asked Oct 24 Sheeza 4k points
0 votes
1 answer 12 views
Problem: I have a list of strings and I want to get the index of an item in the list. For example, I have the following list: Apple, Banana, Orange, Mango, Pineapple and I want to see at what index Orange is. How can I do this?
asked Oct 24 Sheeza 4k points
0 votes
1 answer 9 views
Problem: I am working with arrays in C# and I have an integer array that I want to convert into string. Is it possible to convert an integer array to string? If yes, how?
asked Oct 23 Sheeza 4k points
0 votes
1 answer 5 views
Problem: I am working with arrays and I want to convert my array to List. How I can do that? I am a newbie so examples would be much appreciated. Thanks
asked Oct 23 Sheeza 4k points
0 votes
1 answer 7 views
Problem: I have a list of characters but I want to convert my entire list to strings. How can I do that? Can I use ToString() method to do so?
asked Oct 23 Sheeza 4k points
0 votes
1 answer 14 views
Problem: I have following list that contains duplicate entries: America Britain England America Pakistan America Pakistan Britain Europe I want to remove duplicates from this list. How can I do this?
asked Oct 23 Sheeza 4k points
0 votes
1 answer 10 views
Problem: I have two lists and I want to copy one list to another list. How can I do that? Moreover, can I copy the items of a list to another list that already contains items?
asked Oct 23 Sheeza 4k points
0 votes
1 answer 9 views
Problem: How can I get the last item of the list without looping through the list? Is there any mechanism in C# to do so?
asked Oct 23 Sheeza 4k points
0 votes
1 answer 12 views
Problem: I have a program in which I have a list of strings. Currently, my list is appearing like America England Austrailia Russia I want my list to display like America, England, Austrailia, Russia I mean, I want to convert my list to comma separated list of strings. How can I do that?
asked Oct 22 Sheeza 4k points