Skip to content

Instantly share code, notes, and snippets.

View javabuddy's full-sized avatar

Javin Paul javabuddy

View GitHub Profile
@javabuddy
javabuddy / HellGist.java
Last active December 12, 2015 06:09
HelloWorld in Github Gist
/**
* @link http://javarevisited.blogspot.sg/2011/11/run-java-program-from-command-prompt.html
* HelloWorld to Gist and Github
*/
public class HelloGist{
public static void main(String args[]){
System.out.println("Hello Gist");
System.out.println("Coding is so much fun with Gists");
<html>
<head>
<title></title>
</head>
<body>
<br />
<div style="margin-left:-25px;">
<a target="_blank" href="http://shareasale.com/r.cfm?b=974902&amp;u=880419&amp;m=43514&amp;urllink=&amp;afftrack=" rel="nofollow" target="_top"><img src="http://static.shareasale.com/image/43514/ocajp-ocpjp-blue.jpg" border="0" alt="OCAJP and OCPJP Certifications" /></a>
</div>
<br />
<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>
<html>
<head>
<title></title>
</head>
<body>
<br />
<div class="alignleft">
<script type="text/javascript">
amzn_assoc_ad_type = "banner";
amzn_assoc_marketplace = "amazon";
@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[]) {
@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;
}
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;
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.
*/
@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