Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Ian Robertson

Ian Robertson

Community Learner
Share
6Questions
6Answers
8.8KViews on questions

Iterating over dictionary in Python and using each value

Iterating over a dictionary in Python is a very common task, especially when you want to process or transform its data. A dictionary stores information in key-value pairs, so depending on your need, you can loop through just the keys, just the values, or both at the same time. The most basic way is to loop through the…

Python

Answered Sep 21, 2025 · 1.4K Views Read answer →

Explain java map of maps.

Regarding the Java map of maps - Both nested and combined keys have their places. bowmore gives a pro argument for composite keys, and a con argument for nested maps. Let me provide the loyal opposition: Composite map keys work great when you're looking up a specific known item. Nested maps work well when you need to…

Java

Answered Oct 4, 2022 · 1.5K Views Read answer →

What is the process to see Minecraft source code java?

Interestingly enough, mention of Minecraft source code java release comes straight from the minecraft website. "Once sales start dying and a minimum time has passed, I will release the game source code as some kind of open source. I'm not very happy with the draconian nature of (L)GPL, nor do I believe the other…

Java

Answered Oct 4, 2022 · 1.7K Views Read answer →

How to find all occurrences of a substring?

To find all occurrences of a substring in a string Python does not have any built-in string function that does what you're looking for, but you could use the more powerful regular expressions: import re string = "test test test test" [m.start() for m in re.finditer('test', 'test test test test')]Or Use re. finditer()…

Devops

Answered Jul 18, 2021 · 1.3K Views Read answer →

Use of cast function and types which are allowed?

Cast is the function which is used to convert from one format to another. Example: Cast (data_variable, datetype). Below table tell us the combination of data types which can be converted. Datatype1 is converted to other datatype2, but it is not necessary that datatype2 can be converted into datatype1. BOOLEAN INTEGER…

SQL Server

Answered Nov 1, 2019 · 1.5K Views Read answer →

More members from the Java community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.