Skip to content
Code_Underscored_logo
  • Python
  • Django
  • Web Development
  • Machine Learning
  • C++
  • Java
Code_Underscored_logo
  • Binary Search in Java
    Java

    Binary Search in Java explained with examples

    ByLucy April 24, 2022March 2, 2024

    Binary search is used to find an element among many other elements. The binary search method is faster than the linear search method. Further, the array members must be in ascending order when using binary search. If you have an unsorted array, you can use the Arrays.sort(arr) method to sort it.

    Read More Binary Search in Java explained with examplesContinue

  • Python File Truncate method
    Python

    Python File Truncate method explained with examples

    ByHumphrey April 24, 2022March 2, 2024

    The truncate() technique reduces the size of a file. If the optional size parameter is given, the file is truncated to (at most) that size. The size is set to the current location by default. In addition, there is no change to the current file position.

    Read More Python File Truncate method explained with examplesContinue

  • best vim color schemes for Python
    Python

    The 10 best vim color schemes for Python, and how to install

    ByHumphrey April 24, 2022March 2, 2024

    Vim, an open-source editor, comes pre-installed with a few color schemes. If you’re tired of the default color scheme or want to try something new or give your code a fresh look and feel, you can download and install a new color scheme. In addition, color schemes are a set of colors that specify how to emphasize source code.

    Read More The 10 best vim color schemes for Python, and how to installContinue

  • String array in Java
    Java

    String array in Java explained with examples

    ByLucy April 22, 2022March 2, 2024

    This Java String Array article explains how to Declare, Initialize, and Create String Arrays in Java and various conversions that may be performed on String Array. In Java, arrays are a common data structure for storing many data types, ranging from elementary to user-defined.

    Read More String array in Java explained with examplesContinue

  • Reversing an array in Java
    Java

    Reverse an array in Java explained with examples

    ByLucy April 22, 2022March 2, 2024

    When programmers process arrays starting with the last element, it is always more efficient to reverse the array so that the first element is placed at the array’s last position. Then, the second element is at the array’s second last position until the last element is at the first index.

    Read More Reverse an array in Java explained with examplesContinue

  • Glob function to find files python
    Python

    How to use the Glob function to find files recursively in Python

    ByHumphrey April 22, 2022March 2, 2024

    Glob is a generic term that refers to matching given patterns using Unix shell rules. Glob is supported by Linux and Unix systems and shells, and the function glob() is available in system libraries.

    Read More How to use the Glob function to find files recursively in PythonContinue

  • Converting Array to List in Java
    Java

    How to convert Array to List in Java

    ByLucy April 22, 2022March 2, 2024

    The two most significant data structures in Java are Array and List. We’ll learn how to convert a Java Array to a List in this section. We’ve also written Java applications that use several Java techniques to turn an Array into a List.

    Read More How to convert Array to List in JavaContinue

  • Setting up a simple HTTP server in Python
    Python

    How to set up a simple HTTP server in Python

    ByHumphrey April 17, 2022March 2, 2024

    We’ll learn how to build up a local and straightforward HTTP server with Python in this article. An HTTP server can be convenient for testing Android, PC, or Web apps during development locally. Additionally, you can use it to transfer files between two devices that are linked to the same LAN or WLAN.

    Read More How to set up a simple HTTP server in PythonContinue

  • Sorting ArrayList in Java
    Java

    How to sort ArrayList in Java

    ByLucy April 13, 2022March 2, 2024

    The collection is a Java framework that provides interfaces (Set, List, Queue, and so on) and classes (ArrayList, LinkedList, and so on) for storing a collection of objects. These classes keep data in random order. Sorting is a term used to describe the process of arranging data in an orderly fashion. You can do sorting in two ways: ascending or descending order.

    Read More How to sort ArrayList in JavaContinue

  • Running grep in Python
    Python

    How to run grep in Python

    ByHumphrey April 13, 2022March 2, 2024

    Have you ever considered searching the files of a folder for a string? If you use Linux, you’re probably familiar with the grep command. To search for a string pattern in the supplied files, you can use Python programming to write your command.

    Read More How to run grep in PythonContinue

  • Python set update
    Python

    Python set update explained with examples

    ByHumphrey April 11, 2022March 2, 2024

    The Python set update() method adds items from another set to the current set (or any other iterable). Before adding the items of the given iterable to the called set, this function turns it into a set. For example, if we have a Set my_set: {6, 7, 8} and a List lis: [7, “code”], calling my_set.update(lis) will update Set my_set, and the elements of Set my_set will be {6, 7, 8, “code”} after the update.

    Read More Python set update explained with examplesContinue

  • Using cookies in Flask
    Python

    How to use cookies in Flask

    ByHumphrey April 8, 2022March 2, 2024

    Cookies, or more precisely, HTTP Cookies, are text files saved on the client machine. Based on the cookie settings in the Client Browser, each cookie might be stored permanently or for a defined expiry time.

    Read More How to use cookies in FlaskContinue

Page navigation

Previous PagePrevious 1 … 7 8 9 10 11 … 32 Next PageNext
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy

© 2025 Code Underscored. All Rights Reserved.

A PART OF VIBRANT LEAF MEDIA COMPANY.

  • Python
  • Django
  • Web Development
  • Machine Learning
  • C++
  • Java
Search