Skip to content
  • Twitter
  • Facebook
  • GitHub
  • WordPress.com
yoUVcode

…Knowledge shared = 2 x Knowledge

  • Home
  • Angular
    • Angular
    • AngularJS (Angular 1)
  • Java
    • JDK9 Features
    • Java Advance Concepts
  • UI UX Development
    • HTML
    • CSS
    • Javascript
  • JavaScript
    • Angular
      • Angular
      • AngularJS (Angular 1)
    • Vue JS / Nuxt JS
    • jQuery
    • GruntJS – Javascript task runner
    • ReactJS
  • Interview Questions
    • Angular Qs
    • Aptitude
    • Git : Version control
    • Java Qs
    • Javascript Qs
    • PHP Qs
    • UI/UX
  • Other(s)
    • Adobe Flex & Action script 3
    • Hibernate
    • IDE Tricks
    • MySQL
    • Oracle SQL/PL-SQL
    • PHP
    • Servers
  • Contact

Category: Java

Minimum Deletion Cost to Avoid Repeating LettersMinimum Deletion Cost to Avoid Repeating Letters

Minimum Deletion Cost to Avoid Repeating Letters

October 21, 2020 Vinay Gulati

This is a Leet Code problem (1578 – Minimum Deletion Cost to Avoid Repeating Letters) solved in Java, the problem description is:

Given a string s and an array of integers cost where cost[i] is the cost of deleting the ith character in s.

Continue reading

Difference between Synchronized & Volatile in Java

August 20, 2019 youvcode

volatile keyword in Java is field modifier while synchronized modifies code blocks and methods. synchronized acquires and releases locks on entire code block or method

Continue reading

Dynamic Web Application option not available / missing in Eclipse?

May 16, 2019 youvcode

An option to create new Dynamic Web Application is missing/ not available in any version of the Eclipse. Follow the below steps to fix the problem:

Continue reading

ArrayList vs LinkedList in Java

ArrayList vs. LinkedList

January 19, 2019 youvcode

Arraylist is an index based Data Structure. While using Arraylist for searching or getting an element from an array with index is pretty fast. ArrayList

Continue reading

How to create and modify function using Jshell in Java CLI

November 16, 2017 youvcode

To use the jShell effectively, You must be able to create function so that you can test your functionality quickly and it will be really

Continue reading

Minimum Deletion Cost to Avoid Repeating LettersMinimum Deletion Cost to Avoid Repeating Letters

How to access REF CURSOR Data in Java ?

November 12, 2017 youvcode

In Java, a REF CURSOR is known as a ResultSet object and can be accessed as shown below: import oracle.jdbc.*; … CallableStatement cstmt; ResultSet cursor; // Use a PL/SQL block

Continue reading

Minimum Deletion Cost to Avoid Repeating LettersMinimum Deletion Cost to Avoid Repeating Letters

Convert List to a Set / Set to List in Java

November 7, 2017 youvcode

In Java, When we are working on real time projects.. Generally we came across scenarios like Converting List to Set Object or Vice Versa. 1.

Continue reading

Minimum Deletion Cost to Avoid Repeating LettersMinimum Deletion Cost to Avoid Repeating Letters

JAR vs. WAR vs. EAR

October 28, 2017 youvcode

In J2EE application modules are packaged as EAR, JAR and WAR based on their functionality   JAR: EJB modules which contains enterprise java beans class

Continue reading

java.lang.ClassCastException: org.hibernate.impl.CriteriaImpl cannot be cast to com.YourClass

October 27, 2017 youvcode

When working on any application which Uses Java + Hibernate 3, you face errors like the one shown below: java.lang.ClassCastException: org.hibernate.impl.CriteriaImpl cannot be cast to

Continue reading

How to iterate HashMap in Java ?

October 21, 2017 youvcode

  public static void printMap(Map mp) { Iterator it = mp.entrySet().iterator(); while (it.hasNext()) { Map.Entry pair = (Map.Entry) it.next(); System.out.println(pair.getKey() + ” = ” +

Continue reading

Why List = new ArrayList() ? in Java

October 21, 2017 youvcode

The main reason you’d do this is to decouple your code from a specific implementation of the interface. When you write your code like this:

Continue reading

Java 9 : JShell (REPL) feature

October 8, 2017 youvcode

We heard a lot about REPL when we were developing AngularJS app or NodeJS app. Which works on Read-Evaluate-Print-Loop mechanism. Java Shell tool is an interactive

Continue reading

Top Posts Today

  • MySQL - Retrieve data conditionally
  • How to Justify text in pdf using jsPDF!

Tags

Angular Angular 4 Angular Basics AngularCLI Angular Directive AngularJS AngularJS Framework angularJS Interview question array array_reverse() Associative Array Best Practice CSS Database dom Eclipse Eclipse IDE Eclipse Tricks ECMAscript 2015 Error Errors ES5 ES6 export web-page Git HTML HTML5 IDE interface Interview Questions InterviewQuestions Introduction Java Java collections Java Interview Question Java Programming Javascript javascript basics Javascript Interview Questions List Machine Learning nodejs npm OOPs PDF generator php PHP Interview Questions Programming Python Tutorial

Blog Stats

  • 46,618 hits

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 58 other subscribers

About yoUVcode

yoUVcode.com is a blog for Java and AngularJS developers.

All examples are simple, easy to understand and well tested before publishing.

Authors

yoUVcode.com is created, written and maintained by
Umang Parekh, Vinay Gulati & Saurabh Dwivedi.

 

Archives

Categories

  • Twitter
  • Facebook
  • GitHub
  • WordPress.com
 

Loading Comments...