In this Java tutorial, we will learn how to check if a number is 'Neon' number or not. A 'Neon' number is a number whose sum of all digits of square of the number is equal to the number. For example, '9' is a Neon number. Because, square of 9 is 9*9= 81. Sum of all digits of 81 is 8+1=9. So it is a Neon number. Similarly 1 is also a Neon number. But 8 is not.
ReadPython program to concatenate two dictionaries. Python dictionaries are unordered collection. Python dictionaries are used to store key-value pairs. Dictionaries are written in curly brackets {}. All items are placed inside the curly bracket separating each value by a comma.
ReadWe will learn how to create a Calculator using python 3. The program will read the inputs from the user continuously and based on the user input, it will perform some calculations. We are going to create only a simple calculator that can perform addition, subtraction, multiplication and division.
ReadIn this python tutorial, we will learn how to find the total number of lowercase characters in a string. The user will enter one string, our program will count the total lowercase characters in that string and print out the result.The string can contain a mix of characters, numbers and any other special characters.
ReadIn this example, we will learn how to write a Python 3 program to count the total number of characters of a string. The program will take one string as input and it will print the total count of all characters available in the string. We are not going to count any space, tabs or newline.
ReadIn this tutorial, we will learn how to print the transpose of a matrix in Java. But first let me show you want is transpose of a Matrix :.
ReadIn this program, we will learn how to remove an element of a specific index from an ArrayList. First, we will take 'n' number of inputs from the user . Next we will get the index of the number to be removed. To remove an element from a ArrayList, we can use 'remove(index)' method. 'index' is the index number. If the index is available, we will remove that number , otherwise we will ask the user for a valid input.
ReadUsing StringTokenizer class, we can split a string into tokens.We can specify the delimiter that is used to split the string. For example, 'Hello World' string can be split into 'Hello' and 'World' if we mention the delimiter as space (''). In this tutorial, we will learn how to use 'StringTokenizer' to split a string. I will show you two different examples- to split a string by space and to split by a character (e.g. $).
ReadIn this program, we will learn how to find the simple interest using Java. To calculate simple interest, we need principal amount, rate of interest and time in year. After that , calculating the simple interest is really easy :.
ReadIn this example , we will see how to get inputs from a user. We will use the 'Scanner' class to get the inputs. We will scan one String, one int and one float.
Read