
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
This course is about learning to code in Java by solving coding problems. It will help you build a strong foundation in coding and problem-solving.
I will take you through the Java introduction practice challenge from HackerRank and show you how to solve them with detailed explanations. In each section, you will find several coding problems of varying difficulty levels. You are expected first to attempt solving the problem on your own and then look at the solution only if you are stuck or to compare your solution with mine.
You will learn:
The basics of programming and fundamental concepts of Java
How to apply your knowledge of Java to solving coding challenges
How to approach a problem with a clear and logical mindset
How to improve your problem-solving skills in Java.
By the end of this course, you will be able to solve coding problems in Java confidently.
This course is for anyone who wants to learn how to code in Java. It is perfect for beginners and experienced programmers who want to improve their coding skills.
You don't need to install Java or an IDE to take this course. You can use the HackerRank website to write and run your code.
So, what are you waiting for? Start solving coding problems and become a better programmer today!
Tarun has authored a book titled "Java EE to Jakarta EE 10 Recipes: A Problem-Solution Approach to Enterprise Java" which was published by Apress publications in the year 2022. The book covers all topics related to Enterprise Java development, such as JavaServer Faces, Enterprise JavaBeans, Contexts and Dependency Injection, etc.
Tarun is also an active member of the Java community and has been contributing to various online forums and websites such as Stack Overflow, Quora, etc. I have also presented at various conferences and meetups on topics related to Java and J2EE development.
You can find more details and connect with him on LinkedIn (taruntelang)
He has the following certifications:
- Oracle Certified Programmer for the Java Platform, Standard Edition 6;
- Certified Development Consultant for Web Application Development Focus JAVA;
- Certified Application Management Expert for SAP Solution Manager 4.0 End to End Root Cause Analysis;
- NASBA Certification on Remote Work; and more...
Tarun is an experienced Enterprise Architect, Agile Enthusiast, Web Development Expert, and Programmer. His areas of interest include Enterprise Solutions, Databases, Web, Mobile & Cloud Computing.
Tarun Telang is a hands-on technologist with extensive experience in the design and implementation of multi-tiered, highly scalable software applications. He has been part of several well-known companies such as Microsoft, Oracle, Polycom, and SAP. He has over 16 years of expertise in architecting and developing business applications.
He began his career as an enterprise Java developer at SAP, where he has developed distributed application software for big firms. He got his start with Enterprise Session Beans and Message Driven Beans, as well as instrumenting enterprise applications' configuration and management using the Java Management Extensions (JMX) technology.
He quickly mastered various enterprise technologies like Enterprise Beans, Java Management Extensions, Servlets, and Server Pages technologies, and in his first year as a developer, he became Sun Certified Programmer for the Java Platform, Standard Edition 6; and SAP Certified Development Consultant for the SAP NetWeaver Java Web Application Server (which was a Java EE 5 compliant application server).
He also gained expertise in XML technologies like XSLT and XSD. He developed several solutions using Session Beans and Message Driven Beans to handle message-oriented communications across numerous systems. In 2007, Tarun was named SAP Mentor and Community Influencer for his articles and blog posts on emerging technologies and for promoting innovative solutions in the SAP Developer Community. He frequently writes articles on Java and related technologies. Tarun has also authored multiple online courses, including a best-selling course on YAML data serialization language.
He has presented technical lectures at several developer conferences, including SAP TechEd and the Great Indian Developer Summit. It has been more than 15 years since he has presented at conferences about software technology, actively publishing technical papers and blogs to assist everyone in better grasping the fundamentals of software technology. Tarun is very passionate about software technology and has also developed cloud-based video conferencing applications using a microservices architecture with the Spring framework. He also has experience working with Persistence APIs and Hazelcast framework for building REST-based services.
Later, he led the development of many end-to-end cloud-based solutions using various architectural patterns, including Microservices and Service Oriented Architecture. Tarun has gained expertise in Web, Mobile, and Cloud technologies. He also thoroughly applied agile methodologies, including user-centric & mobile-first designs for managing projects with cross-functional teams in multiple geographies.
Having previously worked and lived in Waterloo(Ontario), Canada, and Heidelberg, Germany. Tarun is currently based out in Hyderabad, India. You can follow him on LinkedIn or Twitter (@taruntelang).
This lecture dissects the fundamental components that comprise a Java program, offering a step-by-step exploration of its structure, syntax, and execution flow.
In this challenge, we practice printing to stdout.
Welcome to the world of Java! In this challenge, we practice printing to stdout. The code stubs in your editor declare a Solution class and the main method.
Problem 3: If - Else Statements in Java
In this challenge, we test your knowledge of using if-else conditional statements to automate decision-making processes.
This video demonstrates creating a program containaing an if-else conditional statements to automate decision-making processes.
In this challenge, we will use loops to help us do some simple math.
In this challenge, we will use loops to print the first 10 multiples of a given Integer N.
Learn about data types in Java.
Problem: Static Initializer Block.
Solution: Static Initializer Block.
In this challenge, we will learn about Strings in Java.
Problem: Converting Integer to String.
In this challenge, you must read integers from stdin and print them to stdout. Each integer must be printed on a new line. To make the problem a little easier, a portion of the code is provided for you in the editor.
In this challenge, you must read integers from stdin and print them to stdout.
This program reads integers from stdin and then prints them to stdout. You will learn how to run, fix compilation errors and run test cases while submitting your code. You will also learn about how to unlock a test case in HackrRank.
In this challenge, you must read an integer, a double, and a String from stdin, then print the values according to the instructions in the Output Format section below. To make the problem a little easier, a portion of the code is provided for you in the editor.
Note: We recommend completing the problem Java Stdin and Stdout I before attempting this challenge.
Learn how to instruct the scanner to skip any text that is preceded by a carriage return, new line character, whitespaces.
In this challenge, you must read an integer, a double, and a String from stdin, then print the values according to the instructions in the Output Format section below. To make the problem a little easier, a portion of the code is provided for you in the editor.
Note: We recommend completing the problem Java Stdin and Stdout I before attempting this challenge.
Java's System.out.printf function can be used to print formatted output. The purpose of this exercise is to test your understanding of formatting output using printf.
To get you started, a portion of the solution is provided in the editor; you must format and print the input to complete the solution.
Java's System.out.printf function can be used to print formatted output. The purpose of this exercise is to test your understanding of formatting output using printf.
Reading Input until End of File.
In this problem, we will be reading Input until the end of the file.
Problem: Working with Date and Time.
Solution: Working with Date and Time.
Problem 11: Currency Formatting.
Given a double-precision number denoting an amount of money, use the getCurrencyInstance method of the NumberFormat class to convert into the US, Indian, Chinese, and French currency formats.
Transcript
Hello everyone. In this video, we'll solve a Java practice challenge from HackerRank. This is the last one. It's called a Java currency formatter. Let's look into the problem. So the problem is, given an input, which is a double precision number, it has a payment value that is in the range of 0 to 10 to power nine. And this has to be outputted into the various format as per US currency format, Indian currency format, Chinese currency format, and French, respectively. There is simple input, which is one, two, 3 to 4.13, four. And these are various sample outputs. We have. Some code is available for us. There is a template, and in the template, there is code for reading the input and displaying it. What we need to do is we need to format it. So here, we have to insert the code to format it. Now to do this, we need to create some string variables to store these values. And we have locale and various locales which is available. So to format them. Let's use them. So let's say new local get currency. So, let's look into the local.Java document. And in this, we have details about how to create a local. So here we see. Locale could be created by passing the constant, which represents the country for which it has to be formatted. So here, number four might get currency instance, and then it can take a locale which could be the locale of the country in which the formatting has to be done. So here, the way to use it is NumberFormat.getCurrencyFormat(), And in this, we have to pass the locale for us. So Locale.US, and then we have to say format() and pass payment. Okay, the same way we can do for other countries as well. So here we have India, we have China, and we have France. So we just changed for China. I will look into the code. You know, we have this China locale and.US locale. And for France, we have France locale. And there is no locale for India. So we have to create a new locale. So let me. Put this for China, and this is for France. For India, we have to create a locale. So a new locale could be created like Locale indiaLocale new Locale, and we pass "en" for the language English and the Country Code "IN."In this way, we can create a local. And then, I will update this. Now let's see. Running this gives the required output. So here we see there is this cannot find symbol number format. And to resolve this. We hear it's NumberFormat.So yeah, there is a slight typo.So here it should be getCurrencyInstance() instead of getCurrencyFormat().So I'll just replace this with the getCurrencyInstance(), which should resolve the compilation error. So I've just updated this. Now we have various strings India, US, China, and France, and they contain respective formatting of the currency. So let's see if we run this code, what we get, and yet it returns. Various currencies in the format as per the requirement. So this looks good. Let's submit this code and run it against other test cases. So this completes this challenge, and all the test cases are passed. Thank you this much for this challenge. See you in the next video.
In this challenge, we will learn how to use Generics in Java
In this challenge, we will learn about Stack data structure in Java.
In this challenge, we will learn about Collections.sort() method in Java
In this challenge, we will learn about Dequeue data structure method in Java
This course is about learning to code in Java by solving coding problems. It will help you build a strong foundation in coding and problem-solving.
I will take you through the Java introduction practice challenge from HackerRank and show you how to solve them with detailed explanations. In each section, you will find several coding problems of varying difficulty levels. You are expected first to attempt solving the problem on your own and then look at the solution only if you are stuck or to compare your solution with mine.
You will learn:
The basics of programming and fundamental concepts of Java
How to apply your knowledge of Java to solving coding challenges
How to approach a problem with a clear and logical mindset
How to improve your problem-solving skills in Java.
By the end of this course, you will be able to solve coding problems in Java confidently.
This course is for anyone who wants to learn how to code in Java. It is perfect for beginners and experienced programmers who want to improve their coding skills. So, what are you waiting for? Start solving coding problems and become a better programmer today!
You don't need to install Java to take this course. You can use the HackerRank website to write and run your code.