RSS.Social

CodeVsColor

follow: @[email protected]

Posts

Learn to create a custom progress button in React Native and TypeScript

How to hide the keyboard on scrolling through a FlatList in React Native

3 ways to detect if Keyboard is opened or closed in React Native

How to hide the keyboard in React Native on tapping outside of TextInput

How to change the text size of TextInput in React Native

How to remove the first occurrence of an item in a list in Python

How to check if an object is an array or not in JavaScript

4 ways to add the digits of a number in JavaScript

6 ways in JavaScript to iterate over an array of objects

How to find all matches in an array of objects in JavaScript

JavaScript program to check if an element is present in an Array or not

Java program to read user input numbers with blank spaces

How to take user inputs with spaces in C program

Show hide a div in JavaScript on button click

How to find simple interest with JavaScript

5 ways to check if Dart LinkedHashMap contains a key or value

3 ways to remove items to a LinkedHashMap in Dart

Dart program to update single or multiple items of a LinkedHashMap

3 ways to add items to a LinkedHashMap in Dart

7 ways to create a LinkedHashMap in Dart

Introduction to Dart LinkedHashMap class

Dart HashSet skip and skipWhile methods explanation with example

Dart HashSet fold and reduce methods explanation with examples

Dart HashSet where and whereType explanation with examples

Dart HashSet.take and HashSet.takeWhile methods

3 ways to find if a HashSet is empty or not in Dart

Union and intersection of two HashSet in Dart

How to add and remove items from a HashSet in Dart

HashSet in Dart and its methods and properties

How to iterate a HashMap in Dart in different ways

How to add and remove items of a HashMap in Dart

Dart HashMap explanation with examples

Dart Queue reduce function example

How to remove and retain items from Queue in Dart with condition

How to add and remove items from a Queue in Dart

Introduction to Queue in Dart and its methods

5 ways in Dart to print the multiplication table

Dart StringBuffer class explanation with examples

How to create a string from ASCII values in Dart

C++ program to find the smallest and the second smallest numbers

JavaScript replace multiple characters using single replace call

Python id() function explanation with examples

C++ class destructor explanation with examples

Java ArithmeticException explanation with examples

Java method overloading explanation with example

Java method overriding explanation with example

How to format a Date in AM/PM in Java

What is hybrid inheritance in java

Java checked and unchecked exceptions example

7 ways to sort an ArrayList of objects in Java

Java program to check if a number is perfect square or not

Java program to filter a map by key and value

Java program to print from A to Z

Java program to check if a character is Alphabet or not

Java program to print X star pattern

Java program to print a plus star pattern

Java program to print hollow diamond star pattern

How to print a Hollow Rhombus pattern in Java

3 ways to find perfect numbers in a range in Java

How to find the product of digits of a number in Java

Java ArrayList clone method explanation with example

Java ArrayList ensureCapacity method

4 different Java program to find the HCF or GCD of two numbers

3 ways to convert System.nanoTime to seconds in Java

Java String charAt method explanation with examples

Different ways to add elements to an ArrayList in Java

Can we execute a Java program without the main method

How to handle multiple exceptions in Java

Can we have multiple public Java classes in one file

3 different Java programs to find the next prime number

Java program to calculate student's grades in 2 different ways

How to change the values of a dictionary in Python

How to remove items from a dictionary in Python

JavaScript program to find if a number is a Magic number or not

How to convert an image to Base64 in JavaScript

C++ program to check if a number is a Magic number in 3 ways

C# program to extract all email addresses from a text file

C# program to find Amicable numbers in two ways

JavaScript program to check if a number is Moran

2 different Java programs to check for Moran number

5 different JavaScript programs to find the average of array values

Leap year program in JavaScript with example

Java program to print a diamond pattern with stars

Java program to print inverted Pyramid patterns in different ways

Java program to print the vowels in a string

How to print Floyd's triangle in JavaScript in 3 ways

Java program to round a number to n decimal places

3 ways in JavaScript to print the Fibonacci series

4 ways in Java to convert a decimal value to octal

Java program to print left-aligned and right-aligned staircase patterns

Java program to find the largest and smallest of n user input numbers

Java vector addAll method explanation with example

Java program to find the largest and smallest of three numbers

3 ways in Python to find the middle n list elements

C++ program to convert a decimal value to octal

C++ program to implement linear search

2 different C++ programs to implement selection sort

2 ways in Python to convert temperature in Celsius to Fahrenheit

4 different Python programs to check if a number is a perfect number

C program to print an alphabet triangle with user-input height

3 ways in Java to print a reverse half pyramid pattern

Python program to print the multiplication table of a specific number

3 ways in Python to calculate GCD or HCF of two numbers

2 different C++ program to copy the content of one file to another

Python program to check if a number is a Niven or Harshad number

3 ways in Java to print Hello World without semicolon

Java program to find the power of a number using recursion

Java program to calculate compound interest

5 ways in Java to print the total number of days in a month

C++ program to print a diamond shape star pattern

Python example to print the function name as string with __name__ and __qualname__

3 different Python programs to get a string after a substring

Python assert statement explanation with examples

C# program to multiply two numbers in different ways

C# program to print the Pascal's triangle with user input height

3 different Python programs to remove the first character of string

How to remove all white spaces from a file in Java

Java program to print an upper triangular matrix

Java program to print odd numbers from 1 to 100

Java program to convert an image to Base64 in 2 different ways

JavaScript program to convert a seconds value to HH:mm:ss

Python program to check if a number is a perfect number or not

JavaScript program to calculate BMI with user input values

C++ program to convert a weight in pounds to kilogram

Python program to check for Moran numbers

4 different Java programs to convert a list to set

Java program to check for disjoint sets in two ways

Java next() vs nextLine() differences with examples

Difference between random.sample() vs random.choice() in Python

C program to check if a character is an Alphabet or not

C program to find the perimeter of a rectangle

C++ program to add the content of two arrays

C program to print the current date-time in different formats

C program to subtract two user input numbers

C++ program to find the area of a rectangle

C program to find the distance between two cities in different units

Java program to check if a number is a composite number or not

Python program to check if a number is a magic number or not

10 different alphabet pattern programs in C

Java program to check if a number is a special number or not

Python program to convert celsius to Fahrenheit and vice versa

C++ program to print the days of the week by using switch case

Java program to add, subtract, multiply and divide using switch case

C program to print the multiplication table using do...while loop

3 different C programs to print an inverted Pyramid pattern

3 different C programs to print the grade of a student

3 different C programs to print odd numbers between 1 to 100

2 different Kotlin programs to find the root of quadratic equation

2 different ways to use Kotlin enum with string values

Introduction to Kotlin string interpolation with examples

How to convert a string to byte array in Kotlin

3 different ways to convert a byte array to string in Kotlin

5 different examples to split a string in Kotlin

How to compare two strings in Kotlin in different ways

Check if a string ends with another string or character in Kotlin

Check if a string starts with a character or sub-string in Kotlin

How to remove the first n characters from a string in Kotlin

C++ program to find the sum of two numbers using friend function

C++ program to find the volume of a cylinder in 3 different ways

C++ program to insert an element to an array at any position

3 different C programs to print a hollow parallelogram star pattern

Java program to find quotient and remainder in two different ways

3 different C programs to print a half diamond star pattern

3 different C programs to convert kilometers to miles

3 different C program to check for spy number

3 ways to find the area and circumference of a circle in C

Python program to check if a number is duck number or not

Kotlin program to create a simple calculator

How to remove specific elements from an array using index in Kotlin

2 ways to find the average of array numbers in kotlin

5 ways to swap two numbers in Kotlin

4 ways to print an integer entered by the user in Kotlin

How to print Hello World in Kotlin in IntelliJ-Idea

2 ways in Kotlin to check if a year is a leap year or not

4 different Kotlin programs to add two numbers

3 different C programs to find all prime numbers in a range

4 different C programs to check if a number is prime or not

2 different C programs to print a triangle of prime numbers

2 different C programs to find the volume and surface area of a cylinder

2 different C programs to draw a butterfly pattern

5 different Java program to print a hollow square star pattern with diagonal

4 ways to concatenate two arrays in C sharp

Python program to check if a number is divisible by another number or not

2 different C++ program to check if a number is spy number or not

3 different Java program to find the volume of a cylinder

Java program to check if a number is circular prime or not

How to sort the array elements in descending order in JavaScript

3 ways in JavaScript to remove duplicate items from an array

4 different JavaScript program to find the factorial of a number

How to get the previous year in TypeScript

How to add one day to a date object in TypeScript

How to get the current date in TypeScript

How to compile and run a TypeScript program

4 ways in TypeScript to reverse a string

TypeScript program to add two numbers

Python string islower method explanation with example

Python string isidentifier method explanation with example

Python string isdigit() method explanation with example

Python string isdecimal method explanation with example

Python string isalpha method explanation with example

Python string isalnum method explanation with example

Python string endswith method explanation with example

Python string zfill method explanation with example

Python string rsplit method explanation with example

Python string rpartition method explanation with example

Python math trunc method explanation with example

Python string rindex method explanation with example

Python numpy.around() method explanation with example

Inheritance in Python explanation with example

What is generator function in Python and how to use it

Python math fabs() method explanation with example

3 ways to find the exponent without using pow() method in C++

C++ program to solve a quadratic equation in different ways

How to sort an array in ascending order in C++

3 different C++ programs to find electricity bill with user given units

4 ways in Java to print an inverted right-angled triangle

4 ways in Java to print a right-angled triangle

3 ways in Java to print a Fibonacci triangle

C# program to print a diamond pattern

Different ways in C# to print a cross pattern

C# program to print a star square pattern

Different ways in C# to print a hollow square pattern

3 different C# programs to print an inverted right-angled triangle

C# program to print a right-angled triangle using any character or number

3 ways in C# to print Fibonacci triangle

C# program to print the area and perimeter of a square

4 different C# programs to convert decimal number to hexadecimal

4 different C# program to find the HCF of two numbers

4 different C# ways to find the LCM of two numbers

Different ways in C# to initialize an array of objects and iterate

3 ways in C# to remove elements from an array

How to get the length of an array in C#

Java program to convert a Hexadecimal value to Decimal

4 ways in C# to reverse an array

C# program to convert a string to a character array

4 ways in C# to convert a hexadecimal value to Decimal

4 ways in C# to print the Geometric Progression or GP

3 ways in C# to print the Arithmetic Progression or AP

3 ways in C# to find the nth number of the Fibonacci series

4 ways in C# to find the sum of first n numbers of the Fibonacci series

4 ways to print the Fibonacci series in C#

3 ways in C# to find the sum and average of user input numbers

3 different C# programs to print the name and age of a user

C# program to print the result of the division of two numbers

C# program to convert a binary value to decimal

4 different C# programs to convert a decimal number to binary

Python program to print the harmonic series

Java program to print the harmonic series

Java program to check if two strings are an anagram or not

Java program to find the first repeating character in a string

4 different Java program to find a random value in an array

Java program to check if a year is a leap year or not

Different ways to find the factorial of a number in Java

Python program to extract emails from a file

Python program to find duplicate words in a file

Read and write the content of a file backward in Python

Python program to sort lines of a text file alphabetically

C program to find the sum of digits of a number

C program to find the first and the last digits of a number

4 different ways to print the natural numbers in reverse order in C

3 different C programs to find the sum of first n even natural numbers

3 different C programs to find the sum of first n odd natural numbers

C program to find the sum of first n natural numbers

Different ways to create a HashSet in Dart

5 different C programs to print all natural numbers from 1 to n

C program to find the nth Armstrong number

Java program to check if a string is a prime number or not

Java program to find all prime numbers from 1 to N

Java program to check if a given number is a prime number or not

Java program to check if a string is palindrome or not

How to reverse each word of a string in Java

Java program to check if a string is empty or not

Java StringBuffer.reverse() method explanation with examples

Java String.replace() method explanation with example

typedef in C explanation with examples

putchar() method explanation with example

C library function gets() explanation with examples

Two different ways in Java to find all duplicate string characters

JavaScript program to print the ASCII values from A to Z alphabet

How to get all Keys of a JavaScript Object

How to convert objects to string in JavaScript

How to remove object properties in JavaScript

3 ways to check if an object is string or not in JavaScript

How to check if a number is NaN in JavaScript

Java program to check if a number is Kaprekar number or not

C program to check if a number is a Kaprekar number or not

JavaScript parseInt function example to convert a string to integer

JavaScript parseFloat method explanation with examples

How to replace an item in an Array in JavaScript

JavaScript filter method explanation with example

How to add elements to the start of JavaScript arrays by using unshift

How to reverse an array in JavaScript in place

JavaScript reduceRight() method explanation with examples

How to merge arrays in JavaScript using concat() method

JavaScript array fill method explanation with examples

JavaScript program to add padding to the start of a string

How to check if a string ends with another string or character in JavaScript

How to use the substring method in JavaScript string

How to use JavaScript string lastIndexOf method

4 ways in JavaScript to check if the first character of a string is in upper case

4 JavaScript program to check if the first character of a string is in lower case or not

How to check if an object is null or undefined in JavaScript

4 ways in JavaScript to check if a string starts with a number

C program to find all disarium numbers from 1 to 100

C program to print all Deficient numbers from 1 to 100

C program to check if a character is uppercase using isupper

C program to check if a character is lowercase using islower

C program to find all Abundant numbers from 1 to 100

C program isxdigit method example to check if a character is hexadecimal

C program to find if a number is a Deficient number or not

C program to check if a number is Abundant or Excessive

C program to check if a number is a disarium number or not

C program to write and read structures to and from a file

C itoa() function implementation explanation with example

C program to print box pattern using a number or any other character

C program to find the median of an array

Python Matplotlib horizontal histogram or bar graph

C++ program to find and print all subsets of a set

3 ways to get a random value from an array in JavaScript

JavaScript array values() function

6 different ways in JavaScript to print the content of an array

How to remove all zeros from a number string in JavaScript

How to use logical operator with strings in Python

3 ways in JavaScript to remove all hyphens from a string

JavaScript string codePointAt method explanation with example

JavaScript Array isArray method explanation with examples

C++ program to find all prime numbers to n using sieve of Eratosthenes algorithm

JavaScript array some() function explanation with examples

C++ program to find the sum of the first and last digits of a number

C++ program to convert hexadecimal to decimal

C++ STL accumulate method explanation with example

C++ program to convert a hexadecimal value to binary

Java Math signum function explanation with examples

Java Math copySign method explanation with examples

C++ isdigit() function explanation with example

C++ program to calculate discounted price

Python numpy floor_divide method explanation with examples

How to use Python string partition method

Python string isnumeric method

Difference between JavaScript Promise.all and Promise.allSettled

How to create a horizontal listview in Flutter

delete vs free in C++ with examples

C++ program to create multiple objects of a class

4 ways in C++ to concatenate two strings

C++ program to print right-angled right-oriented pyramid of numbers

C++ program to print a right-angled number Pyramid

Get evenly spaced numbers in an interval using numpy linspace

How to find Determinant in Python Numpy

Add an element to an array at a specific position in JavaScript

Learn Python numpy clip method with examples

11 differences between Python 2 vs Python 3 with examples

Java String toLowerCase and toUpperCase methods

C program to delete an element from an Array

C program to reverse a positive and negative number recursively

Java program to check if a number is Armstrong or not

Keywords in C explanation with examples

Python dictionary pop method explanation with examples

Python dictionary fromkeys method

Python program to merge a dictionary to a tuple

C++ program to check if a number is even or odd

Python numpy square method explanation with examples

2 ways to check if a number is Pronic number or not in Python

Python program to check if a number is a disarium number or not

Java ArrayList addAll method explanation with examples

3 ways to create platform-specific designs in React Native

How to use try without catch in Java

Java program to swap two numbers without using a third number

Java program to remove all non-ASCII characters from a string

How to get the value of an input field in React.js

Java program to find the sum of digits of a number until a single digit is found

How to use SVG or vector images in React native

How to open a link in a new tab in Reactjs

Python ticket booking program with JSON data

4 different Java program to find the distances between two points

How to read platform-specific values in React Native

How to convert a comma-separated string to an array in JavaScript

2 ways to check if a variable exists or defined in JavaScript or not

How to pass an array to function in Java

Java program to find the roots of a quadratic equation

7 different Java programs to check if a number is Even or odd

Java Arrays sort method explanation with example

Java Arrays hashCode() method explanation with examples

Python rstrip() method explanation with example

Python string lstrip() method explanation with example

Python program to convert a hexadecimal value to decimal

4 ways to find the average of 10 numbers in Python

How to delete all files in a folder older than n days using Python

Java Program to check if a number is a magic number or not

Java Arrays toString method explanation with example

java.util.Arrays.fill method explanation with examples

Java Arrays deepEquals method explanation with example

Java Arrays binarySearch method explanation with example

4 different C program to check if a number is Armstrong number or not

Introduction to yield in Python with example

Learn to get the class name in Python in 2 ways

How to convert a decimal value to hexadecimal in Python

4 ways to convert a datetime object to epoch in Python

4 different Java program to check if a number is a sunny number or not

Java program to check if a number is a spy number or not

Java Math.random() method example to create random numbers

Java program to check if a number is evil number or not

C program to keep reading inputs until -1 is received

C program to check if a number is a Strong number or not

C program to check if a number is Neon or not

C program to convert binary values to octal

Java program to check if a number is a duck number or not

Python program to print a cross pattern using star

Python in and not in operators explanation with examples

Python program to convert a binary to decimal

Java program to check if a number is a spy number or not

3 different Java programs to print Pascal's triangle for a given height

Java program to print a cross star pattern

Java.util.Arrays.copyOf() method explanation with example

How to access an element of a vector using index in C++

How to subtract two numbers in Python

Java program to check if a number is Nelson number or not

Python program to check if a set contains an element or not

Java program to check if a number is a unique number or not

Java program to check if a number is a ugly number or not

Introduction to Vector containers in C++ STL

8 Different ways to initialize a vector in C++

How to add elements to the end of a vector in C++ using push_back

How to print the longest word of a string in C

C program to print the size of the longest word in a string

How to use pi value in Java with example

How to import math class in Java example

Java program to check if a number is a tech number or not

Java array copyOfRange method explanation with example

C++ program to find the average of three numbers

How to create a hollow diamond star pattern in C

C program to find the number of lines, words and characters in a string

Java program to find the average of two numbers

C++ program to print the characters of a string using pointer

C++ program to addition, subtraction, multiplication and division using a class

Python program to read inputs within an interval of time

How to return objects from JavaScript functions

How to take a string with blank spaces as input in Java

Java program to check if a number is valid IMEI or not

C program to swap two bits of a number

C program to convert a string to hexadecimal value

C# program to create an array of objects

How to print the ASCII values all characters in Python

Python program to print a box pattern with plus at the center

How to convert miles to kilometers and kilometers to miles in Java

Java convert string lowercase to uppercase without using any library function

C++ program to sort strings alphabetically

C program to find the average runs of cricket players using structure

C++ program to convert miles to kilometers and kilometers to miles

C program to store and display the details of an employee by using structure

C program to save the output of a program to file

C program to print the name using array

C program to multiply two numbers using plus or addition operator

How to find the income tax of an employee in C

C program to print a two-digit number to word

C++ iswupper() method explanation with example

C++ iswlower() method explanation with example

C++ fill_n() function explanation with example

How to find the exponential value for a number in Python

Python program to read the content of a file to a list

4 Python ways to multiply the items in two lists

How to use logical OR operator,|| operator in C++

How to use logical not operator,! operator in C++

C++ program to convert lowercase to uppercase

C++ and or && operator explanation with example

How to convert a dictionary to string in Python

Python program to convert a dictionary to JSON

How to take one array as input from the user in JavaScript

How to remove the last character of a string in Java

How to remove the first character of a string in Java

Java program to print the Neon numbers from 0 to 10000

Java program to check if a number is a happy number or not

Java program to check if two numbers are Amicable or not

Java program to check if a number is Automorphic or not

How to remove the first element of an ArrayList in Java

Java program to add characters to the middle of a string

How to add a character to the start and end of a string in Java

How to find the sum of two numbers by using a class in C++

C++ Increment and decrement operators

C fsetpos method explanation with example

3 different C++ program to convert integer to string

C++ program to convert binary to decimal

C++ program to convert ASCII to character

C++ program to add a character at the end of the string by using push_back function

C program to print all perfect numbers in a range

JavaScript String search method explanation with example

How to find the base64 of a string in JavaScript

How to find the ASCII value of a character in JavaScript

How to convert date to number in JavaScript

How to check if a date is older than one month or 30 days in JavaScript

Java program to convert a decimal to binary format for a float or double value

C++ program to find the sum of ASCII values of all characters of a string

C++ program to print from a to z in different ways

C++ program to print A to Z in different ways

C++ program to print the prime factors of a number

C++ cmath isless function explanation with example

C++ program to check if a number is greater than another by using isgreater

fabs and abs methods in C++ explanation with example

How to use Python numpy.all method with examples

How to iterate and print an array in reverse order in Python

3 ways to concatenate tuple elements by delimeter in Python