Quick Access is really good, you can find all your recently opened files readily shown as soon as you access File Explorer. But the problem is, sometimes it can lead us to embarrassing situations by exposing our private files especially when you have to do a screen share to someone. I would prefer to have the File Explorer open to "This PC" instead of Quick Access. That way … [Read more...] about How to Make File Explorer Open to This PC instead of Quick Access in Windows 10
Archives for February 2021
We generally use Arrays.asList method to copy an object array into a List object. It returns a fixed-size List object from the object array that you have passed to this method. Since Arrays.asList method returns a fixed-size List object, you must remember that you cannot add or remove elements from this List object as you would do normally by calling the add method and … [Read more...] about Arrays.asList in Java Examples
If you are getting an UnsupportedOperationException while adding an object to List the reason could be that you are performing this operation on a fixed-size List object. What is a fixed-length object? You must have used Arrays.asList method to convert an array object to List object. If you closely look at the documentation of Arrays.asList method, it says that, … [Read more...] about [Solved] Why List.add throws UnsupportedOperationException in Java?
Though an array is an object in Java, it doesn't have the required methods to convert it to a List object, it just contains the basic methods that it derived from the Object class. But if you want to convert an array to List, we have other alternatives. Using Arrays.asList(Object) Arrays.asList method can take an object array and return it as a List object. However, you … [Read more...] about How to Convert an Array to List in Java?
I always wonder, what if there was no tab key on the keyboard, how the world would have been? I pity on those people who don't know about this wonder key and still use spacebar to beautify their work. So, now you recognized the power and wondering how many spaces are there in a tab? Let's go into details. First of all, a tab is a character just like any other characters on … [Read more...] about How Many Spaces in a Tab?