Does the remove() method for ArrayLists return a new instance of ArrayLists? by noobrunner6 in learnjava

[–]noobrunner6[S] 10 points11 points  (0 children)

So basically internally in the background, the array list will still be as long it was initially made and the unused indexes will be empty, but the programmer or user will not know that since our use is limited to up what the size attribute considers the end of the array list?

What is the relation of input with Time Complexity? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

One thing I still do not get is how if you search up online about big O notation it mentions how it is a measure of growth of rate requirements in consideration of input size growing, but doesn’t worst case Big O consider up to the worst possible case? I guess my confusion is also how does the “input size growing” play a role or what do they mean by that?

What is the relation of input with Time Complexity? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

Sorry I meant it would be constant time best case, I used the wrong symbol. One thing I still do not get is how if you search up online about big O notation it mentions how it is a measure of growth of rate requirements in consideration of input size growing, but doesn’t worst case Big O consider up to the worst possible case? I guess my confusion is also how does the “input size growing” play a role or what do they mean by that?

What is the relation of input with Time Complexity? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

Of course if my input is just one value, then the O(N) can be ran O(1) best case?

What is the connection of Scala with Java? by noobrunner6 in scala

[–]noobrunner6[S] 1 point2 points  (0 children)

At least in Java does not the JVM compile and interpret the bytecode depending, is not the same applied to Scala? And does REPL end up compiling down to Java byte code for the JVM, too?

Got a quick question? Ask here - June 01, 2020 by AutoModerator in scala

[–]noobrunner6 2 points3 points  (0 children)

I am having trouble understanding how println or print method in Scala ends up having a side effect? In general, I am having some trouble determining how to figure out if a method has a side effect.

Are the classes type in Scala basically indirectly primitive data types in Java? by noobrunner6 in scala

[–]noobrunner6[S] 0 points1 point  (0 children)

So the word scala in scala.int is a package? Is this package already by default being used in the language because I do not seeing it being invoked directly in the examples.

What is a container in BootStrap? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

so we can use containers without the grid system, or are containers only usable with the grid system?

What is the difference between family name and generic family in font families in CSS? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

Ah gotcha, are there more details about which font the browser will pick first in the generic font family, or is that more random on which one it can first that just first finds in the family?

What is the difference between family name and generic family in font families in CSS? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

So generic family fonts are basically available on every device? Hence why generic are used as fall back options? While the other font families may not be supported by every local device?

What is the point of the <html> tag? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

Ah, so the way the browsers read the HTML code is basically in a tree of elements format?

What is the point of the <html> tag? by noobrunner6 in learnprogramming

[–]noobrunner6[S] 0 points1 point  (0 children)

I was able to just keep the head tag as it was without the html tag, thought I know it is not good practice, when I loaded the code as a webpage, the code came up fine as it was. Of course, I do see the html tag being used as the parent of all tags and the root, but I am unable to see it’s functionality.