Java Web: Servlets, JSP, MySQL
In this sample, we present a program using servlets, Java Server Pages (JSPs), and a connection to the MySQL database. The database is called “Student” and has one table with the same name. The program in Java allows us to add a new student, delete an old student, and update existing ones, and shows all students that are in the database. Continue reading
DAO Pattern in Java
In order to continue the topic of database connectivity in Java, it is necessary to look at the DAO pattern, which facilitates operation with the database.
The main idea of the Data Access Object (DAO) pattern is to hide all backend operations of the connection to the database and unite them in one main class. This may be necessary when the program consists of multiple entities interconnected with each other, and it would be very complex and of poor practice to make connection from each entity every time. Continue reading
Connecting MySQL to NetBeans
When learning any programming language, at some point it may be necessary to extend your skills and knowledge by learning databases and connecting one to the IDE.
In this tutorial we are going to discuss how to connect a MySQL database to NetBeans IDE to work with it using Java. Continue reading
Solve the following separable differential equations:
The main goal of this paper is to analyze the mechanical oscillations of a pendulum using MATLAB software. Continue reading
Solve the following second order differential equation:
Find the solution of the following equation using the bisection method:
Find the solution of the following equation using the secant method:
An object that has a mass of m kg was thrown straight up from a platform which is h m above the ground. The initial velocity was
The air resistance is proportional to the velocity of the object and is equal to av N. Write down the equation for the distance traveled by the object at any time. Find the velocity of the object at the ground level for
Find the solution of the following equation using the Newton Raphson Method: