Posts

Showing posts from 2020

React Js Tutorial for beginner

What is React Js? React JS is a JavaScript library to build attractive user friendly Ui. Prerequisite for ReactJS? -        Basic knowledge on ES6 -        Basic knowledge on html, css, js -        Basic knowledge on npm Tools required -        Vs code (And its free extensions like Babel JavaScript) React Installation -        Install Node.js and npm -        Install Visual code editor -        Install React from Terminal, for this open cmd as an administrative role And then hit the following commands one by one. a)      Npm install -g create-react-app    (This command will install react at global level and will be accessible to any project at any location in the installed machine.) b)      Create-react-app –version (this command will be useful to check and verify React Js version.) c)      C...

How to split string into Array of strings using C# ?

Freshers face situations where they need to split lengthy String into separate and small strings. In order to achieve this goal we need to think on which basis we are going to split that lengthy string. Whether that character is a special symbol or an alphabet or just a space. The good thing is .Net Framework provides a built-in function to make this happen easily. We will see in following simple program how to do it. Code Snippet:- public class SplitingString { public static void Main() { // Display message to enter lengthy string Console.WriteLine("Enter the complete string"); // The input is a variable to store entered string string input = Console.ReadLine(); // Splitting string on the basis of space and storing into an output string array string[] output = input.Split(' '); // Looping through the array to display values one by one foreach (var wo...