Skip to main content

Posts

Showing posts from May, 2021

find second largest number in array in java

In This tutorial we will see that how we can see how to find second largest number in array in java. we will see how to understand the logic while we will debug the code and we will see how to can analyze the program. find second largest number in array in java second largest number in array java find second largest number in array java second largest element in array in java second largest number in java java program to find second largest number in an array second largest number in array in java second highest number in array java find second largest number in array in java program to find second largest number in an array in java write a java program to find the second largest element in an array find the second largest number in an array in java java program to find second largest and second smallest number in an array second largest element in array java write a program in java to find second maximum of n numbers without using arrays 2nd largest number in array in j...

How to reverse sentence word by word

In This tutorials we will see how we can reverse a sentence word by word, This question is asked in fresher interview question or coding challenge for fresher before interview. so lets see how we can reverse sentence Checkout the video to understand logic line by line of code and we will also debug the code so that you can understand each line of code and the purpose of that line of code How to reverse sentence word by word reverse sentence reverse the sentence reverse sentence in english java program to reverse a sentence word by word peripeteia in a sentence reverse in sentence sentence with reverse reverse sentence examples reverse sentence structure use reverse in a sentence sentences in reverse reverse sentence word by word

Write a program to check if String has all unique characters in java?

In This tutorial we will see how to check id the string has all unique characters. we will understand the logic and debug the code to understand each step at a time so we can easily understand what happening in this each line of code  watch the video to understand the concept of  this program Checkout the code here (github):- https://github.com/pushpendragupta1993/DataStructureAndAlgorithms/blob/master/src/com/training/StringAllUniqueCharMain.java Thanks for watching this video hope you liked the video and cleared your understanding. Write a program to check if String has all unique characters in java? Checkout the code here (github):- https://github.com/pushpendragupta1993/DataStructureAndAlgorithms/blob/master/src/com/training/StringAllUniqueCharMain.java Gate preparation, java coding, Write a program to check if String has all unique characters in java?, How to check if String has all unique characters in java?, learn java, coding, learn coding step by step, coding qu...

How to reverse a String in java using recursion?

In This tutorial we will see how reverse string using recursion. this question will be mostly asked from fresher to check there recursion concepts. what is recursion ? Recursion is process to call method from the method. checkout the video with complete explanation of each step to reverse string using recursion. Check the code here (github) https://github.com/pushpendragupta1993/DataStructureAndAlgorithms/blob/master/src/com/training/StringReverseRecursive.java How to reverse a String in java using recursion? reverse string how to reverse string reverse string using recursion reverse string recursion easiest way to learn coding easiest way to learn programming easiest way to understand Data structure easiest way to undestand algorithms easiest way to debug java easiest way to understand programs easiest way to understand java program easiest way to learn java easiest way to understand C program easiest way to understand C++ program easiest way to learn git easiest way to learn githu...

Find the length of string without using length method in java

In This tutorial we are going to see on of the tricky java coding question for fresher where they will be asked to write code to find length of any string without using any inbuild function or method. How to Find the length of string without using length method in java ? Lets see how we can do it  checkout the video mentioned below to understand each line of code, we will also debug the code and see what is happening in each line of code. Git repo:- https://github.com/pushpendragupta1993/DataStructureAndAlgorithms/blob/master/src/com/training/StringLength.java Find the length of string without using length method in java find length of string, learn java with me, find length of string how to find length of string in java. easiest way to learn coding easiest way to learn programming easiest way to understand Data structure easiest way to undestand algorithms easiest way to debug java easiest way to understand programs easiest way to understand java program easiest way to un...

Find all the substring of any string without repetitions.

In This tutorials we will see one of java coding question asked in various interview question and coding challenge before interview How to Find all the substring of any string without repetitions ? We will see each step of the implementation and understand each step with the logic and concepts why we are using this concept. lets check out below video to understand each step while we debug each step one by one Git Repo:- https://github.com/pushpendragupta1993/DataStructureAndAlgorithms/tree/master/src/com/training Find all the substring of any string without repetitions. learn with Krishna Sandeep, durga sir, durga,java, java brains, java tutorial,java tutorial for beginners,java programming,java basics for beginners,java coding for beginners, java by durga sir ,java by pushpendra Gupta, print all substrings for a string, print substrings, print all substrings of a string,durga sir java videos, easiest way to learn coding, easiest way to learn programming, easiest way to understan...

How to implement stack using array in java | Stack Implementation using Array

In This tutorial we will see one of the most frequently asked java interview question which is basically asked in most of the product based question. you must understand this implementation from array data structure to stack. how to implement stack using array. you need to write code in such a way that you use array and achieve all the functionality/Method of the stack as mentioned below  push  -  Insert/add element in the stack pop - Remove element from top of the stack peek - Return element from top of the stack (do not remove) Check out the video with complete details and explanation of each steps, also see debugging each line code and understand the concept behind the implementation git repo:- https://github.com/pushpendragupta1993/DataStructureAndAlgorithms/blob/master/src/com/training/StackCustom.java How to implement stack using array in java, Stack Implementation using Array stack in data structure,data structures tutorials, operating system, data structure and a...

Top 10 most important & useful eclipse shortcut

In This tutorials we will see top 10 most important and useful shortcuts for below mentioned IDE Eclipse Spring tool Suit (STS) Myeclipse So Lets check out the video with all the shortcuts being used in hands on:- Eclipse shortcut,Spring tool suit eclipse,STS shorcuts,learn eclipse shortcuts,eclipse tips and tricks,how to use eclipse shortcuts,learn eclipse,eclipse tutorials,top 10 eclipse shortcuts,top 10 spring shorcuts,top 10 spring tool suit shortcut,top 10 STS shorcuts

How to debug any java application using eclipse, Spring tool suit, STS, Eclipse

In This tutorial we will see how to can debug any type of application in below mentioned IDEs Eclipse Spring tool suit STS Eclipse What you will learn in this tutorials ? 1. How to debug any java application. 2. How to debug restful webservice. 3. How to add break point. 4. How to step into and step in each step in java application while debug. 5. How to start using debugging. Please check the video mentioned below to have complete clarity and hands on. How to debug in eclipse, eclipse productivity, eclipse shortcuts, in28minutes tutorial, eclipse tutorial, pushpendra Gupta, eclipse java tutorial, java, eclipse tips, interview, eclipse tutorial for beginners, Karanam, Java , Eclipse , Debug , Java Code Debug , Source Code, How to add breakpoint in code, how to debug any java program, how to debug restful api, learn how to debug any code, how to debug any program in Spring tool suit, debug in STS

How to create new git branch from eclipse or Spring tool suit/STS

How to create new git branch from existing branch using IDE like eclipse, Spring tool suit, my eclipse. This process is also applicable other source code repositories like bitbucket  What you will learn in this tutorial ? 1. How to checkout code from git hub to any IDE ( eclipse, Spring tool suit, my eclipse ) 2. How to create branch using IDE 3. How to switch to a different branch using any IDE. 4. How to commit code changes and push the changes back to git hub or bit bucket Please check below details with hands on:- Thanks for watching this video hope you liked the video and cleared your understanding. How to create new git branch from eclipse How to create new git branch from Spring tool suit How to create new git branch from myeclipse How to create new git branch from any java IDE How to switch new git branch from eclipse How to switch new git branch from Spring tool suit How to switch new git branch from myeclipse How to switch new git branch from any java IDE How to import ...

How to commit code changes from Java IDE eclipse to git hub or bitbucket

In This tutorials we will see how we can checkout code directly in java IDE make changes in code and push it back to git repository What we will learn in this tutorials ? 1. How to checkout repository from git hub or bitbucket to our IDE. 2. How to Import project from git hub repository to our eclipse or spring tool suit workspace. 3. How to create branch from java IDE like eclipse or Spring tool suit. 4. How to commit code from our IDE. Thanks for watching this video hope you liked the video and cleared your understanding. How to commit code changes from eclipse to github How to commit changes from Spring tool suit to github how to commit changes from sts to github how to commit changes from myeclipse to github how to import project from github to ide how to import project from github to myeclipse how to use bitbucket with any java ide How to import project directly from github to eclipse, import project from github to any of your IDE, import project from github to Spring tool suit...

How to import project directly from git hub or bitbucket to eclipse or Spring tool suit (STS)

 In This tutorials we will see how we can directly import any repository or project from git hub or bitbucket to our IDE What we will learn in this tutorials ? 1. How to checkout repository from git hub or bitbucket to our IDE. 2. How to Import project from git hub repository to our eclipse or spring tool suit workspace. 3. How to create branch from java IDE like eclipse or Spring tool suit. 4. How to commit code from our IDE Thanks for watching

How to sort Hashmap by its value or key - sort any map

Mostly asked coding question in product based company. concepts of maps and there implementation are being asked in many product based companies. What you will learn in this tutorials ? 1. How to sort map ? 2. How to sort Hash map ? 3. How to Sort map using its key ? 4. How to sort map using its value ? 5. Sort map using its key in ascending or descending order / alphabatically or alphabatically reverse order. These are the check your map concepts How to sort hashmap by it's key or value ?  what is hashmap? Hashmap is a data Structure to store value in for key and values Map<String, Integer> hmap = new HashMap<String,Integer> Steps to sort hashmap Solution in java:- github link:-  DataStructureAndAlgorithms/HashMapMain.java at master · pushpendragupta1993/DataStructureAndAlgorithms (github.com) Java code to sort hashmap by its value package com.training ; import java.util.ArrayList ; import java.util.Collections ; import java.util.Comparator ; import java.uti...

How to create a git repository in your local system and push it to github

In this tutorial we will learn how to create git branches from local and make changes and push that branch to github How to create branch in local git      git branch BranchName How to switch to other local branch      git check BranchName check all the branches in local git      git branches check the git status about your changes and the branch you are in      git status After making changes run the below command to change upstream branch & push changes to git hub     git push --set-upstream origin branch_name

How to create a new branch and works on that branch

In this git tutorial we will see how we can create branches in github, checkout the code in local and make changes also how to commit changes and push it to github * How to create branch in git hub * How to checkout specific branch in local system * How to switch to different branches in local git using command prompt * How to add changed files to git local repository * How to commit code changes to local repository  * How to push code changes from specific branch * How to set upstream while pushing changes to github Let's get started... 1. How to checkout code from specific branch      git clone -b BranchName giturl      if you want to create a new branch in your local use the below command     -> How to create branch in local git                   git branch BranchName     -> How to switch to other local branch           ...

How to checkout github repository in local and make changes

This blog is about checking out your code from git hub and how you make changes then add those changes back to git hub. Below are the steps to checkout the project/codes in local system. 1. How to Checkout project/code from git hub      git clone <git_repository_url>      The above code will always checkout the main branch (master branch)      Inorder to checkout any other branch use below command      git clone -b <branchName> <git_repository_url> 2. Make changes in your project      do changes as per your need & requirement 3. How to add new file in local git repository      git add . 4. commit your changes      git commit - m "your commit message" 5. Push your changes to github      git push -u origin master      if you are not using master branch then you need to use below command     git push --set-upstream ori...

How to push your project to github repository

These days everyone is using github as source code repository. Below is the list of commands to push your changes to github repository from local for the first time  Check out list of commands Idea behind this is to create local git repository & then push it to github repository 1. How to  initialize the local git repository.         git init 2. To a dd all the files to the local git repository      git add . 3. C heck the status of local repository.            git status 4. How to commit change to the local git repository.      git commit -m 'your message' 5. Connect local git repository to github.      git remote add origin 'github_repository_url' 6. Push your changes to github      git push -u origin master . Checkout the below video for complete understanding Thankyou for watching