• 08 October

    Remove last element from list python

    In this post, we will see how to remove the last element from a list in python. Using list.pop() You can use list.pop() method to remove the last element from the list. [crayon-6788a0dee346d867407137/] Output: List Of Countries are: [‘India’, ‘China’, ‘Bhutan’, ‘Nepal’] List Of Countries after removing last element: [‘India’, ‘China’, ‘Bhutan’] Removed country: Nepal […]

  • 08 October

    [Solved] uncaught referenceerror: $ is not defined

    In this post, we will see how to resolve uncaught referenceerror: $ is not defined jquery error. In jQuery, $ represents jQuery function. You will get this error when you are trying to access anything before loading jQuery. For example: request //uncaught referenceerror: $ request is not defined var request request // works fine There […]

  • 06 October

    Java remove last character from string

    Learn about how to remove last character from String in java using different ways.

  • 06 October

    2d Arraylist java example

    In this post, we will see how to create 2d Arraylist in java. Best way to create 2d Arraylist is to create list of list in java. [crayon-6788a0dee3a6c539852653/] Let’s create a program to implement 2d Arraylist java. [crayon-6788a0dee3a72550966804/] Output: 2nd element in list3 : List3_Str2 3nd element in list1 : List1_Str3 1st element in list2 […]

  • 06 October

    Java isNumeric method

    In this post, we will see how to implement isNumeric method in java. There are many way to check if String is numeric or not. Let’s see one by one. Using regular expressions You can use below regular expression to check if string is numeric or not. [-+]?\\d*\\.?\\d+ [crayon-6788a0dee3bb1609946192/] Output: 223 is numeric : true […]

  • 06 October

    Convert char to lowercase java

    You can use Character class’s toLowerCase method to convert char to lowercase in java. Method signature [crayon-6788a0dee3e46852007638/] Parameters ch is primitive character type. Return type return type is char. If char is already lowercase then it will return same. [crayon-6788a0dee3e4b084451293/] When you run above program, you will get below output: a y b z That’s […]

  • 06 October

    Convert char to uppercase java

    You can use Charater class’s touppercase method to convert char to uppercase in java. Method signature [crayon-6788a0dee3f60299665292/] Parameters ch is primitive character type. Return type return type is char. If char is already uppercase then it will return same. [crayon-6788a0dee3f65474227352/] When you run above program, you will get below output: A Y F U That’s […]

  • 06 October

    Java isLetter method

    Character class’s isletter method can be used to check if character is letter or not. Method signature [crayon-6788a0dee405a333585833/] Parameters ch is primitive character type. Return type boolean is primitive character type. [crayon-6788a0dee405f634649959/] When you run above program, you will get below output: true true false false That’s all about java Character’s isletter method.

  • 06 October

    Fix cannot make static reference to non-static method

    In this post, we will see how to solve cannot make static reference to non-static method. Let’s understand this error with the help of example. [crayon-6788a0dee416c639876068/] Above program won’t compile and you will get below compilation error. It says cannot make static reference to non-static method sayHello from the type JavaHelloWorld Why are you getting […]