Operation System : Windows 10 IDE : IntelliJ Requirements : Java 8 > , Postman ( For Testing) Book | Tutorial : youtube tutorial Java version : 12 Git Project : Here Parts: Part 1 Goal Learn how to indicate erroneous actions and objects in the REST Service Solution Main Changes Model During my research […]
Java
I am learning Java in 2020 – Beginner – Simple Spring REST Service Setup with In-memory DB
Operation System : Windows 10 IDE : IntelliJ Requirements : Java 8 > , Postman ( Rest API Testing) Book | Tutorial : youtube tutorial Java version : 12 Git Project : Here Starter Project: Here Parts: Part 2 Goal Learn how to setup a spring rest application Learn how to add dependencies in the […]
I am learning Java in 2020 – Beginner – Absolutely Simple Restaurant DB connection using JPA
Operation System : Windows 10 IDE : Eclipse IDE ( Java EE – 4.15.0 ) Java version : 12 Less complicated version : In Java and in Python Requirements: Java installed, MySQL connector jar ( here) , MySQL Optional : Eclipse Java EE IDE Goal Learn the java persistence architecture ( JPA ) Pseudo-code Create […]
I am learning Java in 2020 – Beginner – Java and a MySQL Database
Operation System : Windows 10 IDE : Intellij IDEA Community Python Implementation : Making a simple database for a restaurant menu Problem Goal Learn how to connect to a mysql database in Java. Pseudo-code Make a connection to the mysql db Create the “restaurants” database, if not exists Populate the “Nigerian” table in the restaurants […]
Learning Java in 2020 – Beginner – Ridiculously Simple Python Client and a Java Server
Overview reference Problem Goal Make a python socket client send a “hello” message to a waiting java server. Voila! Pseudo-code Create a server socket that waits for incoming streams / connection from another address Send a “hello world” message to the server socket and have the server socket print it out after the connection has […]
Java and Python Project List
I thought it would be interesting to see how one could implement a program in java and python. Hopefully it would help me gain more insight in programming syntax and logic. Projects Python Java Simple Automated WordPress Project Setup Available Ports in a Machine ( Network Programming Basics) Simple RSS Feed GUI in Python Simple […]
Learning Java in 2020 – Beginner – Available Ports in a Machine ( Network Programming Basics)
Overview reference Problem Goal Try to find open ports on a computer by using its ip address.. Pseudo-code Get the ip address Get range of ports to be checked Make connections to ip address at each port within the given range If connection is established, write the port in the “openports.txt” file and close the […]
Learning Python in 2020 – Beginner – Simple RSS Feed GUI
Overview reference Other Implementations Java Problem Goal Simply obtain a valid url from the command line, determine if the given url has a rss feed ( <url>/feed). If it does, display a list of all the items and allow the user to open a post by clicking on an item. Pseudo-code Get url from user […]
Learning Java in 2020 – Beginner – Simple RSS Feed GUI
Overview reference Problem Goal Simply obtain a valid URL from the command line, determine if the given URL has a rss feed ( <URL>/feed). If it does, display a list of all the items and allow the user to open a post by clicking on an item. Pseudo-code Get URL from user Make request to […]
Learning Java in 2020 – Beginner – How to program a basic text editor
Overview reference Problem Goal Create a very basic text editor without text formatting features. It should provide a text field where a text can be given and a button to save the text input as a file. Before saving the file, the user should provide the file name via the command line. After which, the […]
Learning Java in 2020 – Beginner – Count Words in a String
Overview reference Problem Goal Generate a program that counts the number of words in a given text. For added complexity, read a file and count the number of words in the content. Pseudo-code If the user provides a file path as the first command line argument, read the file and count the words Else, ask […]
Learning Java in 2020 – Beginner – Check if Palindrome
Overview reference Problem Goal Check if the the user input reads the same forward and backward. Here for more explanation. In this solution we will be ignoring the case. Pseudo-code First of all, the user input string is obtained and reversed. Both the original value and reversed form are stripped of non-alphanumeric characters. That way, […]
Learning Java in 2020 – Beginner – Count Vowels
Overview reference Problem Goal Count the number of vowels in a given text and provide a report of how many times a specific vowel occurred in the text. Pseudo-code Count Vowels Get user input Declare a count variable and initialize with 0 Loop through text Check if each character is a vowel If vowel, increase […]
Learning Java in 2020 – Beginner – Pig Latin
Overview reference Python Solution Problem Goal Simply take a word, check if it begins with a vowel or a consonant cluster and append “ay” accordingly. If the word starts with a vowel, add an “ay” to the end of the word. Else extract the consonant cluster from the word, append “ay” to the cluster and […]
Learning Java in 2020 – Beginner – Reverse String
Note I am a novice in the world of java programming and hope that similar learners would benefit from my learning experience. Also suggestions and corrections/revisions are highly welcomed from java programmers at any level. Problem Goal: Reverse a string Pseudo-code : Get a string from the command line Declare new string and initialize with […]