There are some methods in arrays to perform some important operations such as adding new elements to an array, Finding elements in an array, removing elements from arrays, splitting arrays, combining arrays, etc.
We can use push, unshift, splice methods for adding elements to arrays.
Also we can use indexOf,lastIndexOf methods to finding elements in arrays.
Object-oriented programming (OOP) refers to a type of computer programming in which define the data type of a data structure and also the types of operations that can be applied to the data structure.
In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.
The Basic OOP Concepts
If you are new to object-oriented programming languages, you will need to know a few basics before you can get started with code. …
After that, I learned how to declare constants. That’s very easy because the difference between declaring a variable and declaring a…
I built a game called Simple Dot Com Game using java. First of all, I declared new integer two variables called ‘locationCells’ and ‘numOfHits’. After that I declared two methods called ‘String checkYourself(String guess)’ and ‘void setLocationCells(int loc)’ .After the declaring,I Wrote test code for the SimpleDotCom class Based on prepcode.Everything in prepcode happens in the main method.After implementing the test code ,I had a problem. After that ,I made a new smaller array to solve this problem.Finnaly, I built the game.
During this two months , I learned basics of java. That’s so much fun. Also I learned about several types of HTML tags. Also I read a book called ry’s git tutorial. I learned a lot from that book. It is a very interesting book. After that I started contributing via GitHub. That was a new experience for me. I made my first contribution to the Sefglobal website and also I created a twitter account. That’s it !!!