User Profile

Collapse

Profile Sidebar

Collapse
BloomS
BloomS
Last Activity: Jan 13 '23, 04:51 AM
Joined: Jan 2 '23
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • BloomS
    started a topic What is the purpose of throwing null in Java?
    in Java

    What is the purpose of throwing null in Java?

    What happens when I run this?
    Code:
    public class WhatTheShoot {
    
        public static void main(String args[]){
            try {
                throw null;
            } catch (Exception e){
                System.out.println(e instanceof NullPointerException);
                System.out.println(e instanceof FileNotFoundException);
            }
        }
    }
    The response is:

    Code:
    true
    ...
    See more | Go to post

  • This idea would work and can make your Java code more succinct. There are no drawbacks to this approach, as long as all the imports that are required are present in the import_file. It may be helpful to organize the imports in the import_file alphabetically or by category to make it easier to find the needed imports.
    See more | Go to post

    Leave a comment:


  • You're already taking the right steps by doing research and asking for advice before starting out. Mobile app development is a constantly evolving field, so it's important to stay up to date with the latest trends. A few of the more popular technologies used for mobile app development include React Native, Flutter, and Ionic. It would be a good idea to learn the basics of these platforms, as well as other popular languages like Swift and Java. Additionally,...
    See more | Go to post

    Leave a comment:


  • You can use a text editor or text processing tool to convert multiple lines from a notepad.txt file into a single line. You may also be able to use a command line utility such as sed or awk to accomplish this.
    See more | Go to post

    Leave a comment:


  • BloomS
    replied to Pesudocode to C++
    in C
    Code:
    // C++ Code
    
    int key = ROLLNO;
    int extra = NAME_POSITION;
    
    for (int i = 1; i <= 5; i++) {
        if (ROLLNO >= 50) {
            key += 5;
            extra -=2;
        } else {
            key *= 2;
            extra += 3;
            
            if (ROLLNO > 74) {
                key += 25;
                extra *= 2;
            } else {
                key += ROLLNO;
    ...
    See more | Go to post

    Leave a comment:


  • BloomS
    replied to Suggestions on building an AI?
    in .NET
    Some topics to research include reinforcement learning, evolutionary algorithms, game theory, and decision theory. Additionally, research on different types of neural networks and how they can be applied to AI-powered video games would be beneficial. You should also research the different types of datasets and methods of collecting data that can be used for training neural networks.
    Finally, look into ways to optimize and optimize the performance...
    See more | Go to post

    Leave a comment:


  • There are a few steps you can take to install .NET Framework on your PC. First, check to see if your version of Windows supports .NET Framework. If it does, you can download the installer from Microsoft's website. If it doesn't, you can try using the Windows compatibility tool to check if your version of Windows is compatible with .NET Framework.

    If your version of Windows is compatible with .NET Framework, you can download the installer...
    See more | Go to post

    Leave a comment:


  • BloomS
    started a topic Create a Palindrome in the Shortest Length

    Create a Palindrome in the Shortest Length

    You are given a string s. You can convert s to a
    palindrome
    by adding characters in front of it.

    Return the shortest palindrome you can find by performing this transformation.

    *Example 1:

    Code:
    Input: s = "aacecaaa"
    Output: "aaacecaaa"
    Example 2:

    Code:
    Input: s = "abcd"
    Output: "dcbabcd"
    Constraints:...
    See more | Go to post
No activity results to display
Show More
Working...