DCS 19 CO1212 - Array Operations Activity

Related tags

JSON ArrayOperations
Overview

Array Operations

Download this two java files and implement the methods which are mentioned inside the class. Just use the basic things that I have taught you in the lectures.
In the next lectures you will be asked to share and explain the codes.

Interface to implement

// Implement the method to insert the numbers into the array 
(Get the numbers from the user.)
public static void fillArray() {
// Code here.....
}

// Implement the method to display the numbers of the array
public static void printArray() {
    // Code here.....
}

// Implement the method to display the numbers reversely
public static void printReverse() {
    // Code here.....
}

// Implement the method to search a specific number from the array
public static void Search() {
    // Code here.....
}

// Implement the method to find the maximum number from the array
public static void Maximum() {
    // Code here.....
}

// Implement the method to find the minimum number from the array
public static void Minimum() {
    // Code here.....
}

// Implement the method to retrieve a number at specific index
public static void getElement() {
    // Code here.....
}

// Implement the method to replace a number at specific index
public static void replaceElement() {
    // Code here.....
}

// Implement the method to sort the array in ascending order
public static void sortArrayASC() {
    // Code here.....
}

public static void Delete() {
    // Code here.....
}

Tests

import java.util.Scanner;

class arrayOperationsMain {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        arrayOperations op = new arrayOperations();

        System.out.println("Enter the size of the array");
        int size = sc.nextInt();
        
        int array[] = new int[size];
        
        // Call the methods here......
    }
}

What I did...

I implemented the methods ~ La Basica in the original file. But I also created a seperate package containing another implementation, which is good.

You might also like...

Awaitility is a small Java DSL for synchronizing asynchronous operations

Awaitility is a small Java DSL for synchronizing asynchronous operations

Testing asynchronous systems is hard. Not only does it require handling threads, timeouts and concurrency issues, but the intent of the test code can

Dec 31, 2022

Awaitility is a small Java DSL for synchronizing asynchronous operations

Awaitility is a small Java DSL for synchronizing asynchronous operations

Testing asynchronous systems is hard. Not only does it require handling threads, timeouts and concurrency issues, but the intent of the test code can

Jan 2, 2023

A high level API to express vectorized operations in Java

vector-handle A high level API to express vectorized operations on primitive arrays in Java allowing to specify the vectorized operations as a simple

Oct 5, 2022

This repository has the code for basic operations on tries - insert, search and delete.

This repository is part of the unacademy session series I took on 17th and 18th of April, 2021. I am daily improving it a bit, with the amount of time

Apr 27, 2021

Provides many useful CRUD, Pagination, Sorting operations with Thread-safe Singleton support through the native JDBC API.

Provides many useful CRUD, Pagination, Sorting operations with Thread-safe Singleton support through the native JDBC API.

BangMapleJDBCRepository Inspired by the JpaRepository of Spring framework which also provides many capabilities for the CRUD, Pagination and Sorting o

Apr 7, 2022

Diff Utils library is an OpenSource library for performing the comparison / diff operations between texts or some kind of data: computing diffs

Diff Utils library is an OpenSource library for performing the comparison / diff operations between texts or some kind of data: computing diffs, applying patches, generating unified diffs or parsing them, generating diff output for easy future displaying (like side-by-side view) and so on.

Jan 5, 2023

UMS is a CRUD based management system which uses File Handling to manipulate data and perform the CRUD operations

UMS is a CRUD based management system which uses File Handling to manipulate data and perform the CRUD operations

UMS is a CRUD (Create, Read, Update, Delete) based management system which uses File Handling to manipulate data and perform the CRUD operations. It is a group project made using Java procedural programming having both User and Admin sides.

Dec 20, 2022

It creates a Trie with given input and perform character based operations

It creates a Trie with given input and perform character based operations

Trie-with-character-based-operations It creates a Trie with given input and perform character based operations Boolean Search(String arg): This functi

Jul 3, 2022

An intelliJ plugin providing a UI layer for git-flow, which in itself is a collection of Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

An intelliJ plugin providing a UI layer for git-flow, which in itself is a collection of Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

Git Flow Integration Plus for Intellij An intelliJ plugin providing a UI layer for git-flow, which in itself is a collection of Git extensions to prov

Nov 8, 2022

Basic crud operations with json data, main focus is with tests

Spring Crud operations Basic crud operations with json data, main focus is with tests. For future reference Road Map Basic Crud on controllers (done)

Feb 1, 2022

A calculator that performs various operations such as addition, subtraction, multiplication and division of positive and negative values

A calculator that performs various operations such as addition, subtraction, multiplication and division of positive and negative values

A calculator that performs various operations such as addition, subtraction, multiplication and division of positive and negative values The calculator also does percentages, square roots and squares

Jan 31, 2022

It contains a simple program to apply basic arithmetic operations in Morse code

Morse-Calculator By Mohamad Farag F. Makkawi This project falls under DSL (Domain Specific Language) . the Input is an equation in which simple arithm

Apr 29, 2022

Teaching repository for the undergraduate course in Operations Research at Technical University Munich.

Tutorial for Operations Research SS22 Konstantin Kuchenmeister Teaching repository for the undergraduate course in Operations Research at Technical Un

Aug 27, 2022

Split into data blocks,In this format, efficient reading can be realized,Avoid unnecessary data reading operations.

Split into data blocks,In this format, efficient reading can be realized,Avoid unnecessary data reading operations.

dataTear 切换至:中文文档 knowledge base dataTear Split into data fragments for data management. In this format, efficient reading can be achieved to avoid un

Dec 15, 2022
Owner
Dilshan Karunarathne
Computer Science undergraduate, Self-taught programmer, Ful-stack Dev & blogger
Dilshan Karunarathne
CO1212 - Stack Operations Activity

StackOperations Download this two java files and implement the methods which are mentioned inside the class. Just use the basic things that I have tau

Dilshan Karunarathne 4 Apr 26, 2022
Imports waypoints from DCS F10 map into the plane navigation system, like a Data Transfer Cartidge.

DCSTheWay Imports waypoints from DCS F10 map into the plane navigation system, like a Data Transfer Cartridge. Special thanks to kukiric for helping o

Aaron Daniel 85 Dec 27, 2022
Java Practical CO1212 exercises and assignment answers.

CO1212 Exercises Java Practical CO1212 exercises and assignment answers. Contribute to this You can find the questions in their respective directories

Dilshan Karunarathne 4 Apr 12, 2022
Schreibe die statische Methode intArrayMinimum so, dass sie den kleinsten im übergebenen Array enthaltenen Integer-Wert zurückgibt.

In dieser Aufgabe wiederholst du an einem einfachen Beispiel die Verarbeitung von Arrays. Konkret geht es darum den kleinsten Wert in einem Array zu f

null 2 Dec 23, 2021
A suite of software tools and services created to support activity planning and sequencing needs of missions with modeling, simulation, scheduling and validation capabilities

Aerie A suite of software tools and services created to support activity planning and sequencing needs of missions with modeling, simulation, scheduli

NASA Advanced Multi-Mission Operations System 31 Jan 3, 2023
React native wrapper for Jitsi Meet SDK Library that rely on the native view (Activity / ViewController)

react-native-jitsi-meet-sdk React native wrapper for Jitsi Meet SDK Library. This Library implements the Jitsi SDK with a native activity on the Andro

null 7 May 2, 2022
Function allowing you to find duplicate in an array in linear time and constant space

Floyd's tortoise and hare Function allowing you to find duplicate in an array in linear time and constant space ! Floyd's method is a pretty amazing,

null 7 Mar 29, 2022
App to demonstrate the passage of adapter items into activity using interfaces

OnClickListenerExample This application shows how to pass adapter items into an activity using interfaces. The sample data set contains two fields rep

Rohan Bari 1 Feb 2, 2022
A gradle plugin generates resConfig & languages array from project res folder.

For Android application projects that accept user-submitted translations, the number of supported languages may be large and growing. When new languages are added, developers need to manually update resConfig (1) and language array xml/class (2). Manual means there could be human error.

Rikka apps 28 Nov 12, 2022