Home Author
Author

Moses N

  • Java

    Illegal start of expression in Java

    by Moses N
    by Moses N

    The illegal start of an expression is a java error during the compile-time with the “javac” compiler. When the compiler detects that a statement does not follow the syntax rules of the java programming language, an illegal start of expression error message is displayed. These errors can occur due to so many reasons. In most cases, they are straightforward to solve as long as you can locate the line of code with the error. It can be as simple as caused by an omitting closing or opening bracket or a missing semicolon at the end of a line.

  • Java

    Resolving Java unreachable statement

    by Moses N
    by Moses N

    The java unreachable statement is a compilation error thrown when the compiler detects a code that was not executed as part of the program. When you reach this state, it means that your program would not be executed anymore, and hence this piece of code is unnecessary and should be removed.

  • Java

    Functions in java

    by Moses N
    by Moses N

    The goal of every programmer is to save time in both programming and debugging. However, there comes a time when you write hundreds of lines of code. It’s very frustrating having to repeat the same code now and then. It is more frustrating when your code gets some error, and you will need to debug the whole program.

  • Java

    How to convert string to integer in Java

    by Moses N
    by Moses N

    I was in the process of creating a simple calculator in java using Swing. My input fields include JTextFieald and JTextArea. These input fields are String, but I needed to deal with Integers in a calculator due to the mathematical calculations. This led me to thoughts of how I would be able to convert these Strings into integers?  That’s when I came across these two beneficial methods. The Integer.parseInt() and Interger.valueOf().

  • Java

    Iterators in Java

    by Moses N
    by Moses N

    If you are a newbie to Java or even an experienced programmer, you may face a situation where you need to transverse through all the elements of a collection, display the elements one by one, or even retrieve each of the elements. This is where your knowledge of iterators will be at the test.

  • CSS is an acronym for Cascaded Style Sheet.  In the modern world, it seems that every business has a functional website. It’s a necessity to make your website professional and also appealing to the human eye. The better your website is, the higher the chances of visitors staying on your website. This is where the power of CSS comes in – styling your web pages.

  • HTML, CSS, and JavaScript are all front-end web development languages. If you have a website, it will be supported by these languages in one way or the other. Shopify is an e-Commerce platform for all businesses. It is a subscription-based subscription that allows anyone to set up an online e-Commerce store and sell their products. For example, let’s say you need an online business to sell clothes. Shopify allows you to create an online store, add images and their prices and start selling. With Shopify, you can also build your store offline.

  • Java

    How to initialize an array in Java

    by Moses N
    by Moses N

    Arrays are one of the most important data structures in our daily life. An array is a group of similar typed variables that are referred to by a common. In other words, we can define it as a contiguous memory location that stores data of the same type. Arrays offer a convenient means of grouping data items.

  • HTMLWeb Development

    HTML horizontal line

    by Moses N
    by Moses N

    Let’s take some time today and discuss this awesome feature in HTML “horizontal line.” First of all, you may need to know if HTML “horizontal line” is a tag or an attribute. You can find more about HTML attributes well explained here. In this case, the HTML horizontal line is a block-level element or, in other words, a tag.

  • C++

    Hollow Diamond Pattern Program in C++

    by Moses N
    by Moses N

    As a C++ professional programmer, you might often come across this challenge during an interview case or even a programming solution challenge. Therefore, we must equip ourselves with this knowledge of how to code a hollow diamond pattern in C++.

  • C++

    Linked List in C++

    by Moses N
    by Moses N

    It’s always never too late to learn new skills. Let’s take some time and look at this fundamental and useful data structure in our daily lives. What is a linked list in C++? It’s a type of data structure that uses pointers for its implementation. It will be very wise for you to also look at pointers if you have not yet since they will give you a deeper understanding of the Linked List. Nevertheless, I will try as much as possible to make this simple and understandable.