Base Java Classes

Base Java Classes

Coding has progressed this week for the Address Infinite application and I am beginning to fill in the inner-workings of the various class files I created in the previous two weeks of work. The majority of the work this week has centered around the login system and the general user interface code to help navigate the application. Some work was done in the areas of blockchain and contact management.

Below is a stripped code snippet of the main controller class file. This file is the hub of the application and helps control the main logic of the application. My application is utilizing an MVC structure (Model, View, Controller). This helps me parse out the sections of code in a logical manner that allows the application to grow over time without becoming too large or cumbersome.

Example of basic App controller:

public class App {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Contacts capstoneAIContacts = new Contacts();
        App inApp = new App();
        inApp.showContacts();
    }
    public void showEvents(){
        
    }
    public void showContact(){
        
    }
    public String showContacts(){
        Contacts capstoneAIContacts = new Contacts();
        String[] capstoneAIContactsAll = capstoneAIContacts.all();
        for (int i=0; i<capstoneAIContactsAll.length; i++){
             System.out.println(capstoneAIContactsAll[i]);
        }
        return "";
    }

    public void showNotes(){
        
    }
    public void showBlockchain(){
        
    }
    public int showEvent(int id){
        return 0;
    }
    public int showContact(int id){
        return 0;
    }
    public int showNote(int id){
        return 0;
    }
    

}

The User Interface code should be completed next week which will allow me to compile a navigatable application that can run on desktop computers and allow testing to being soon.

GUI Finished

GUI Finished

Coding Continues

Coding Continues