Skip to content

Instantly share code, notes, and snippets.

View javabuddy's full-sized avatar

Javin Paul javabuddy

View GitHub Profile
import org.junit.Assert;
/**
* My solution of classical two sum problem in Java.
Problem - Given an array of
* integers, find two numbers such that they add up to
a specific target number.
*
* The method twoSum should return indices of the two numbers such that they add
* up to the target, where index1 must be less than index2.
@javabuddy
javabuddy / gist:ab8371c3e0d4c14303d511dc61fe21fe
Last active October 2, 2020 08:28
freejavascript.html
Hello All, If you want to learn JavaScript by yourself and looking for some free resources like [books](http://www.java67.com/2015/10/top-5-free-javascript-books-download-pdf-read-online.html), [sites](http://www.java67.com/2015/12/best-websites-to-learn-javascript-online.html), and [tutorials](http://www.java67.com/2017/07/6-ways-to-redirect-web-page-using-JavaScript-and-jQuery.html) then you have come to the right place.
In this article, I am going to share some of the best free JavaScript online courses you can join to learn [JavaScript](http://www.java67.com/2018/04/top-5-free-javascript-courses-to-learn.html) by yourself, on your own schedule and at your own place.
A lot of people are learning JavaScript and the number is only increasing by each passing day, and why not? It's the #1 web development language. It also has tons of useful frameworks and libraries like [Angular](http://www.java67.com/2018/01/top-5-free-angular-js-online-courses-for-web-developers.html), [React](http://www.java67.com/2018/02
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
* Program to demonstrate coding for interfaces in Java
* @author WINDOWS 8
*
*/
public class Hello {
public static void main(String args[]) {
@javabuddy
javabuddy / resources.html
Last active September 8, 2020 15:45
Free Programming Resources
Here is a list of some free programming resources like books, tutorial, and ocurses
https://medium.com/javarevisited/7-free-courses-to-learn-database-and-sql-for-programmers-and-data-scientist-e7ae19514ed2
https://medium.com/javarevisited/top-10-free-courses-to-learn-jenkins-docker-and-kubernetes-for-devops-in-2020-best-of-lot-62a0541ffeb3
package tool;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
*
* A simple Java Program to demonstrate how to use map and filter method Java 8.
* In this program, we'll convert a list of String into a list of Integer and
* then filter all even numbers.
*/
SELECT e.emp_id, e.emp_name, d.dept_name, p.project_name from Employee e
INNER JOIN Department d ON e.dept_id = d.dept_id INNER JOIN Projects p
ON e.project_id = p.project_id Where d.dept_name="finance" and e.emp_name
like '%A%' and e.salary > 5000;
@javabuddy
javabuddy / Book.java
Created June 20, 2020 09:23
Code for Book class in Java
public class Book {
private final String name;
private final double price;public Star(String name, double price) {
this.name = name;
this.price = price;
}
@javabuddy
javabuddy / IterativeBinarySearch.java
Last active February 6, 2020 14:01
Binary Search in Java
import java.util.Arrays;
import java.util.Scanner;
/**
* Java program to implement Binary Search.
* We have implemented Iterative
* version of Binary Search Algorithm in Java
*
* @author Javin Paul
*/
public class IterativeBinarySearch { public static void main(String args[]) {
<html>
<head>
<title></title>
</head>
<body>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://certification-questions.com/spring-free-mock-exams/spring-core-v4.2-practice-test.html?affiliateCode=fcff36fd-557a-4713-abf6-973e9924770f" rel="nofollow" target="_top" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-C7SWFw671Q0/WQQ5uLUo-5I/AAAAAAAAIho/Kfqz2KXea_8sZWhRNZipORI1sThI2B9ewCLcB/s1600/Spring%2BCertification%2BDumps_300x250.png" /></a></div>
<br />
</html>
<html>
<head>
<title></title>
</head>
<body>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://shrsl.com/?g0cb" rel="nofollow" target="_top" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-O1hCxh7uaGs/WOJEEx-09jI/AAAAAAAAIPs/pDYvHhXm3us9ACOJFqCij40_5uHRvBSxgCLcB/s1600/whizlabs_coupon-java-combo-ocajp-ocpjp-25_300x250.jpg" /></a></div>
<br />
</html>