/Java-1

Includes programs written in Java. You are welcome to contribute here!

Primary LanguageJava

Java

What does this repository contain?

This is a beginner-friendly repository which features programs in Java.

Can I contribute?

Yes! 😄 you can definitely contribute! The following are some of the things you can do -

  1. If you have a program written in Java that is not in the repository you can open up a PR. You can also open up a PR if you have another way of implementing a concept in the repo.
  2. Also, if you can see something wrong (maybe like an error or something), you can open up a PR.
  3. Another suggestion is if you can think of a creative way to explain any concept using markdown, you are welcome to contribute!

How can I contribute?

It is very easy to contribute, you may follow these steps -

  1. Fork this repository
  2. Make changes/ add things (if adding a new program please check the program list below to see if the program hasn't been implemented already)
  3. Add a comment at the top of your program describing what it does (e.g. "Program to demonstrate abstract classes in Java")
  4. If you add a new program, update the list of programs in the readme file
  5. Make sure to merge the latest master branch into your feature branch to avoid conflicts
  6. Open up a PR. It will be merged after review.

Programs:

  1. Abstract Class - Program to demonstrate abstract classes in Java

  2. Rectangle Area - Calculates area of a rectangle

  3. Arithmetic exceptions - Program to show Arithmetic Exception Error handling

  4. Array Lists - Program to show list of strings in java

  5. Array Out Of Bounds - Program to show ArrayOutOfBoundsException Error handling

  6. Bank System - Using concepts of object-oriented programming develop solution for banking system (create account, deposit money, withdraw etc.)

  7. Book Shop - Class for book shop inventory management-

  8. Bubble Sort - Program to sort an array in Java (using bubble sort)

  9. Calculator - Calculator for basic math operations

  10. Circular Queue - Demonstrates implementation of a circular queue

  11. Complex Nums Ops - Program to demonstrate operations on complex numbers in Java

  12. Constructors - Program to demonstrate the use of constructors in Java

  13. Derived Constructor - Program to demonstrate the order of constructor call

  14. EduEmpDB - Program to simulate maintainance of a database of emplooyees, showcases thw relationships between the classes

  15. Edu Institute - Program to simulate student registration to an educational institute

  16. Exc Handling - Program to demonstrate crete an ararylist and update, delete and view elements in the list

  17. Except Throw - Program to demonstrate handling of a NullPointerException

  18. factoflargenum - Program to demonstrate Factorial of Large numbers in Java using BigInteger

  19. fibo - Program to fibonacci numbers until N

  20. For Loop - Program to demonstrate the use of for loop

  21. Functional Interfaces - Program to demonstrate how to use the Function and BiFunction functional interfaces

  22. Gen Class Method - Program to demonstrate method instanstiation in Java

  23. gen Prog - Demonstrates generic programming

  24. hello World - Simple Java helloworld program

  25. input - Program to demostrate accepting an input in java

  26. Integer To Word - This program converts numbers into its word counterparts.

  27. JavaC lasses - Program to demonstrate the use of classes and objects (basic)

  28. Largest Number - Program to demonstrate the use of if-else if-else statements

  29. Lists - Shows array list of strings, integers and linked list for numbers

  30. Matrix Addition - Program to add two matrices in Java

  31. Multiple Inheritance - Program to demonstrate multiple inheritance

  32. Nested Try - Program to demonstrate a nested try..catch

  33. Number To Roman - Program to convert a number to roman numerals

  34. Overloading - Program to demonstrate overloading in Java

  35. PrimeNo - Program to find out the prime numbers in a given range in Java

  36. Square Every Digit - This program finds the square of a number.

  37. Static Count - Program to demonstrates static count

  38. Static Member Functions - Program to demonstrate the use of static member functions -

  39. Student Interface - Shows implementation of an interface

  40. Sum Of Array Nos - Program to add all the numbers in an array

  41. Switch Case - Program to demonstrate switch case statements in Java

  42. This Pointer Explicit - Program to demonstrate 'this' pointer (explicit method)

  43. This Pointer Implicit - Program to demonstrate the use of 'this' pointer

  44. TwoDArrays - Program to demonstrate 2D arrays (Hard-coded)

  45. Wiggle Sorting - Program to demonstrate sorting an array using wiggle sort

  46. Palindrome- Program to check whether the number entered by user is palindrome or not

  47. Binary Search - Program to demonstrate sbinary search algorithm

  48. Heap Sort - Program that implements Heap Sort.

  49. Fibonacci Search - Program that implements Fibonacci search.

  50. Tic Tac Toe - Program to play tic-tac-toe game with computer.

  51. Prim's Algorithm to find the MST of a Graph - Program that implements Prim's Algorithm

  52. Interpolation search - Program that implements Interpolation search.

  53. Exponetional search - Program that implements Exponetional search.

  54. Exponetional search - Program that implements Soundex algorithm.

  55. BFS - For unweighted connected graph.

  56. DFS - For disconnected graph use the approach for checking connected components.

  57. Decimal to Binary - Convert decimal to binary.

  58. Dijkstra - Implements Dijkstra algorithm.

  59. Insertion Sort - Program that demonstrates insertion sort algorithm

  60. Selection Sort - Program that demonstrates selection sort algorithm

  61. Quick Sort - Program that demonstrates quick sort algorithm

  62. Merge Sort - Program that demonstrates merge sort algorithm

  63. Shell Sort - Program that demonstrates shell sort algorithm

  64. Income Tax Calculator - Income Tax Calculator program

  65. Bucket Sort - Program that demonstrates Bucket sort algorithm

  66. Rock Paper Scissor - Rock paper Scissor Game Program

  67. Trie_Implementation - Program that demonstrates the implementation of Trie Data Structure in Java.

  68. Ford Fulkerson - Program that demonstrates the implementation of FordFulkerson algorithm.

  69. Kruskal - Program that demonstrates the implementation of Kruskal's algorithm.

  70. GSSArray - Program demonstrates the working of Growable Self Sorting Array.

  71. Ceiling Floor - Program that demonstrates to find ceiling and floor number in an array

  72. Floyd Warshall Algorithm - Program for solving the All Pairs Shortest Path problem where to find shortest distances between every pair of vertices in a given edge weighted directed Graph.

Contributors -

A big thank you to all our contributors!!!

Made with contributors-img.

Do ⭐ the repo if you find it useful!! ☺😇☺