Skip to content

This is a compilation of all the java programs i've tried and tested.

License

Notifications You must be signed in to change notification settings

dat-adi/Java-Grip

Repository files navigation

Java-Grip

Here's a collection of the Java programs that I have been trying my hand at for a grip.

Arrays

Start.java                | 1D Array, 2D Array, splitting up of a string.

Collections

AssertDemo.java           | Working with Assertions.
Basic.java                | BufferedReader Usage.
FileReader.java           | Reading Files in Java.
FileWriter.java           | Writing to Files.
OverloadedThis.java       | Constructor Overloading.
StreamTest.java           | Testing the Stream utility.
TinyEdit.java             | BufferedReader and stops.

Generics

BoundedParams.java        | Restricts the parameter to be bound to the required type.
FirstGen.java             | Basic Generic Class Implementation.
GenericArray.java         | An generic implementation to print arrays.
LeastFrequent.java        | A solution to print the least frequent elements of an array.

Graphs

BreadthFirstSearch.java   | Creates a graph which can be navigated using the BFS algorithm.
DepthFirstSearch.java     | Creates a graph which can navigated using the DFS algorithm.
Dijkstra.java             | Implements the Dijkstra's Path Finding Algorithm.
TSP.java                  | Implements the Travelling Sales Person Problem.

GUI

JavaFX

SecondHello.java          | A simple GUI program that says hello.
TreeTest.java             | Trees in JavaFX.

Swing

ButtonEventHandling.java  | Handling events through button triggers.
CheckboxHandling.java     | Handling checkboxes in swing.
FirstHello.java           | Initial Hello made in Swing.
InterestSwing.java        | Simple Interest Calculator.
PaintDemo.java            | Paint application in Swing.
RadioSwing.java           | Radio buttons and Swings.
SwingMenu.java            | Menus in Swing.
SwingPainting.java        | Painting in Swing.
TemperatureSwing.java     | Temperature Calculator.

HashTables

QuadraticProbing.java     | Creates a hashing table, employs methods with quadratic probing.

LeetCode

ATM.java                  | CodeChef
BitCounting.java
bitonicDLL.java
CountingValleys.org
DeleteNode.java
detectLoop.java
EleLinked.java            | HackerRank
FindTheWordIndex.java
FormatOutput.java         | HackerRank
HighestLowest.java
HourGlass.java            | HackerRank
HumanReadableTime.java
JewelsStones.java         | CodeChef
JumpingClouds.java
LeftRotation.java         | HackerRank
maxSlidingWindow.java
mergeSortDLL.java
MissingLetter.java
NodeAtHead.java
NodeAtPos.java
NodeAtTail.java
PrimeInNumbers.java
priorityQueueDLL.java
recoverBST.java
RepeatedString.java
Result.java
segregateEvenOdd.java
Series.java               | HackerRank
SockMerchant.org
sortWithoutExtraSpace.java
SplitStrings.java
stackPermutations.java
StaticInitializer.java    | HackerRank
stockSpan.java
TenMinWalk.java
TestingLists.java
theCelebrityProblem.java
towerOfHannoi.java
TrailingZeros.java
Triplets.java             | HackerRank
TwoSum.java

MultiThreading

MThread.java              | Creating a thread.
ThreadEx1.java            | Listening to multiple threads.
ThreadEx2.java            | Switching between threads.
ThreadEx3.java            | Parent and Child threads.
ThreadEx4.java            | Interrupts in threads.
ThreadExamTester.java     | Threads that get the sum of columns.
ThreadRunnable.java       | Threads that inherit Runnable.
ThreadStarter.java        | Runner inherits Thread.

OOPS

boyGirl.java              | Object Creation.
complexNumbers.java       | Methods in Classes.
constructorPairs.java     | Constructor Overloading.
DynamicDispatcher.java    | Extending Classes.
PhoneUse.java             | Object Creation but with Phones.
rectangleCheck.java       | Rectangle Translation.
StudentOopStudy.java      | Object Creation but with Students.

Pattern

DiagonalMatrixNumbers     | A program that can make a matrix which increases diagonally.
FlagPole                  | A program that creates a flag pole pattern.
ReverseTriangle           | A program that creates a triangle reversed vertically.
Triangle                  | Simple Triangle Print.

Prime

BetweenPrimes             | Finding a number between two primes.
PrimeNumbers              | Counting the number of primes till a given point
SumOfPrimes               | Finds the sum of prime numbers till a given point

Search

BinarySearch | Does a binary search for the element. LinearSearch | Does a linear search for the element.

Sorting

BubbleSort.java           | Sorts elements using the bubble sort algorithm
HeapSort.java             | Sorts elements using the heap sort algorithm
InsertionSort.java        | Sorts elements using the insertion sort algorithm
MergeSort.java            | Sorts elements using the merge sort algorithm
QuickSort.java            | Sorts elements using the quick sort algorithm
SelectionSort.java        | Sorts elements using the selection sort algorithm

Trees

BinaryTree.java           | Creates a Binary tree with pre, in, post order outputs.
BST.java                  | Creates a Binary Search Tree with all the required operations.

This is a compilation of all the java programs I've tried and tested.

About

This is a compilation of all the java programs i've tried and tested.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages