Java-Fantasy
Java-Fantasy copied to clipboard
JAVA-Fantasy
A collection of 150+ Java Codes as a webpage
Made with 🧡 by Mainak Chaudhuri
Brief Note on Java
Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let application developers write once, run anywhere (WORA),meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than either of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code modification) that are typically not available in traditional compiled languages. As of 2019, Java was one of the most popular programming languages in use according to GitHub,particularly for client-server web applications, with a reported 9 million developers.
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance with the specifications of the Java Community Process, Sun had relicensed most of its Java technologies under the GNU General Public License. Oracle offers its own HotSpot Java Virtual Machine, however the official reference implementation is the OpenJDK JVM which is free open source software and used by most developers and is the default JVM for almost all Linux distributions.
Today, Java is taught as a major programming language in many schools (mostly in the schools under ICSE board). It is quite popular amongst developers and is widely used in server-based and server-less utilities. Java plays a very important role in DevOps.
Given below are some basic beginner friendly java codes with logic explanations, for practice and curriculum.
Basic Programs
Patterns (Numerical)
- Number Pattern 1
- Number Pattern 2
- Number Pattern 3
- Number Pattern 4
- Number Pattern 5
- Number Pattern 6
- Number Pattern 7
- Number Pattern 8
- Number Pattern 9
- Number Pattern 10
- Number Pattern 11
- Number Pattern 12
- Number Pattern 13
- Number Pattern 14
- Number Pattern 15
- Number Pattern 16
- Number Pattern 17
- Number Pattern 18
- Number Pattern 19
- Pascal's Triangle
Patterns (Character)
- Charater Pattern 1
- Charater Pattern 2
- Charater Pattern 3
- Charater Pattern 4
- Charater Pattern 5
- Charater Pattern 6
- Charater Pattern 7
- Charater Pattern 8
- Charater Pattern 9
- Charater Pattern 10
- Charater Pattern 11
- Charater Pattern 12
- Charater Pattern 13
- Charater Pattern 14
- Charater Pattern 15
- Charater Pattern 16
Numeric Programs
- ATM
- Autobiographical Number
- Automorphic Number
- Bouncy Number
- Buzz Number
- Duck Number
- Emirp Number
- Evil Number
- Fascinating Number
- Greatest Common Divisor
- ISBN Number
- Keith Number
- Krishnamurthy Number
- Mystery Number
- Neon Number
- Nth Prime Number
- Number to Word
- Perfect Square
- Peterson's Number
- Reverse Number
- Smith Number
- Sphenic Number
- Spy Number
- Strontio Number
- Sunny Number
- Tech Number
- Xylem Phloem Number
Array Programs
- Array Program 1
- Array Program 2
- Array Program 3
- Array Program 4
- Array Program 5
- Array Program 6
- Array Program 7
- Array Program 8
- Array Program 9
- Array Program 10
- Array Program 11
- Array Program 12
- Array Program 13
- Array Program 14
- Array Program 15
- Array Program 16
- Array Program 17
- Array Program 18
- Array Program 19
- Array Program 20
- Array Program 21
- Array Program 22
- Array Program 23
Matrix Programs
- Matrix Addition
- Matrix Multiplication
- Matrix Substraction
- Matrix Comparison
- Lower Triangular Matrix
- Higher Triangular Matrix
- Odd-even Frequency
- Matrix Product
- Row Column Sum
- Transpose Matrix
- Identity Matrix
- Sparse Matrix
- Transpose Check
String Programs
- String Program 1
- String Program 2
- String Program 3
- String Program 4
- String Program 5
- String Program 6
- String Program 7
- String Program 8
- String Program 9
- String Program 10
- String Program 11
- String Program 12
- String Program 13
- String Program 14
- String Program 15
- String Program 16
- String Program 17
- String Program 18
- String Program 19
- String Program 20
Sorting and Searching
Conversion Programs
- String to Integer
- Integer to String
- String to Long
- Long to String
- String to Float
- Float to String
- String to Double
- Double to String
- String to Date
- Date to String
- String to Char
- Char to String
- String to Object
- Object to String
- Integer to Long
- Long to Integer
- Integer to Double
- Double to Integer
- Character to Integer
- Integer to Character
- String to Boolean
- Boolean to String
- Date to Timestamp
- Timestamp to Date
- Binary to Decimal
- Decimal to Binary
- Hexadecimal to Decimal
- Decimal to Hexadecimal
- Octal to Decimal
- Decimal to Octal
Linked List Programs
- Simple Linked List
- Singly Linked List
- Count Nodes
- Reverse Linked List
- Delete Starting Node
- Delete From Middle
- Delete End Node
- Palindrome Checklist
- Minimum and Maximum
- Insert in Middle
- Insert at Start
- Insert at End
- Remove Duplicate Nodes
- Search Linked List