1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aivan3 [116]
3 years ago
7

Can someone urgently help me with my java code (I WILL GIVE BRAINLIEST)?! Ive been working on it for hours and its not working!

(please give an actual answer...)
*examples of required output at the bottom*

code: public class CircularList
{
private ListNode head;
private ListNode tail;
private int size;







public CircularList()

{

head = tail = null;

size = 0;

}





public int size()

{

return size;

}





public boolean isEmpty()

{

return (size == 0);

}





public int first()

{

if (head != null) {

return head.getValue();

}

return -1;

}




public Integer last()

{

if (tail != null) {

return tail.getValue();

}

return -1;

}



public void addFirst(Integer value)

{

head = new ListNode(value, head);

if (tail == null) {

tail = head;

}

size++;

}





public void addLast(Integer value)

{

ListNode newTail = new ListNode(value, null);

if (tail != null) {

tail.setNext(newTail);

tail = newTail;

} else {

head = tail = newTail;

}



size++;

}





public void addAtPos(int pos, Integer value)

{

if (pos == 0) {

addFirst(value);

return;

}

if (pos <= 0 || pos > size) {

return;

}

if (pos == size) {

addLast(value);

return;

}



ListNode ptr = head;

for(int i=0; i = size) {

return retVal;

}

if (pos == 0) {

return removeFirst();

}

ListNode ptr = head;

for(int i=0; i
ptr = ptr.getNext();

}

retVal = ptr.getNext().getValue();

if (pos == size-1) {

tail = ptr;

tail.setNext(null);

} else {

ptr.setNext(ptr.getNext().getNext());

}



size--;

return retVal;

}





public int findNode(Integer find)

{

ListNode ptr = head;

for(int pos=0; pos
if (ptr.getValue() == find) {

return pos;

}

ptr = ptr.getNext();

}

return -1;

}




public void rotate()

{

addLast(removeFirst());

}




public String toString()

{

String output = "";

ListNode iter = head;

while(iter != null) {

output += String.format("%d ", iter.getValue());

iter = iter.getNext();

}

return output;

}



}

size = 6 first = 50 last = 60
50 20 10 40 30 60

removeFirst = 50
size = 5 first = 20 last = 60
20 10 40 30 60

removed = 30
size = 4 first = 20 last = 60
20 10 40 60

size = 4 first = 20 last = 60
20 10 40 60

found at -1
removed = -1
size = 4 first = 20 last = 60
20 10 40 60

size = 4 first = 10 last = 20
10 40 60 20
Computers and Technology
1 answer:
o-na [289]3 years ago
4 0

Answer:

code 345code 4537

Explanation:

You might be interested in
Angelika just submitted her product for the first time, and she had 2 errors, 3 warnings, and 5 notifications. What does she nee
skelet666 [1.2K]

vvhooi. cucuxcuh gxzuzn

5 0
4 years ago
Read 2 more answers
What is the relationship between data, information, business intelligence, and knowledge?
Tpy6a [65]

Answer:

The answer is below

Explanation:

Given the following:

Data is oftentimes described as actual truth or evidence about a situation or condition.

Information, on the other hand, is described as a refined data

Business Intelligence is defined as a combination of several information utilized in the decision-making process.

Knowledge is basically described as a form of intellectual properties, which encompasses a lot of experiences, skills, and creativity.

Therefore, the main relationship between all these is the utilization of these resources to enhance and improve the decision-making process. This is because, the gathered DATA is converted to INFORMATION, which in turn used to build BUSINESS INTELLIGENCE and finally, through the combination of past experiences, skills and talent, leads to a wealth of KNOWLEDGE to enhance and improve the decision-making process.

7 0
3 years ago
what are some examples of security goals that you may have for an organization? check all that apply.
ExtremeBDS [4]

An examples of security goals that you may have for an organization is:  

  • To protect customer data against unauthorized access.

<h3>What is customer credentials about?</h3>

The goal of a firm in terms of security is to Safeguards or Defend customer credentials or details.

Therefore, An examples of security goals that you may have for an organization is:  

  • To protect customer data against unauthorized access.

Learn more about security goals from

brainly.com/question/14139033

#SPJ11

6 0
2 years ago
30 points!
Ad libitum [116K]

Answer:

"data" (and any subsequent words) was ignored because we limit queries to 32 words.

Imagecbseacademic.nic.in › 402-IT...PDF

INFORMATION TECHNOLOGY-402 CLASS-X ... - CBSE Academic

SESSION 3: CREATE AND USE TEMPLATE ... You can create a new style by copying an existing manual format. ... When the image is in a file stored on the computer, you can insert it into an Open.

212 pages·8 MB

Imagesupport.microsoft.com › office › pr...

Present data in a chart - Word - Microsoft Support

Insert a chart by embedding it into your document ... Step 4: Show or hide a legend ... 2. The plot area of the chart. 3. The data points of the data series that are plotted in the ... After you create a chart, you can modify any one of its elements.

support.microsoft.com › office › us...

Use charts and graphs in your presentation - PowerPoint

Add a chart or graph to your presentation in PowerPoint by using data from Microsoft Excel.

People also search for

Types of graphs in statistics

Types of graphs in statistics

Line chart

Line chart

Bar chart

Bar chart

Histogram

Histogram

Area chart

Area chart

Line graph

Line graph

Pie chart

Pie chart

Dot plot

Dot plot

Graph

Graph

More results

Types of graphs in statistics

When inserting charts on your document, what Microsoft Office application pops up

Write down the steps to insert a chart in slide in Impress

PPT charts and graphs

Feedback

Imageopentextbc.ca › dbdesign01 › chapt...

Chapter 16 SQL Data Manipulation Language – Database Design ...

In this chapter, we will describe how to use the SELECT, INSERT, UPDATE, and DELETE SQL DML command statements ...

opentextbc.ca › dbdesign01 › sql-str...

Chapter 15 SQL Structured Query Language – Database Design ...

Perform complex queries to transform raw data into useful information. In this chapter, we will focus on using SQL to create ...

Imagecorporatefinanceinstitute.com › study

Types of Graphs - Top 10 Graphs for Your Data You Must Use

#3 Combo Chart. The above two types of graphs can be combined to create a combo chart with bars and lines. This is ...

Imagewww.originlab.com › origin

Origin: Data Analysis and Graphing Software - OriginLab

With over 100 built-in graph types and point-and click customization of all elements, Origin makes it easy to create and ...

Imagedocs.aws.amazon.com › latestPDF

Amazon Athena - User Guide - AWS Documentation - Amazon.com

or may not be affiliated with, connected to, or sponsored by Amazon. ... Using the AWS Serverless Application Repository . ... Creating Tables Using AWS Glue or the Athena Console . ... Multiple JSON records return a SELECT COUNT of 1 .

Imagewww.mindtools.com › pages › article

Charts and Graphs - Communication Skills From MindTools.com

When you show an effective graph or chart, your report or presentation ... They all look smart, but which one works best for your data, and for your audience? ... How to Create Basic Graphs and Charts ... Figure 3: Example of a Line Graph.

Imagewww.mathworks.com › matlabcentral

MATLAB Answers - MathWorks

Hi, I would like to create a weighted sample from an m by n matrix starting from an excel file ("DataTab", please see image ...

Get the answer that you’re looking for added to the web

Your question will be shared anonymously with online publishers who may be interested in answering it

What’s your question?

Make sure that you don’t include any private info

Learn more

Submit

Related searches

How to update charts in PowerPoint from Excel automatically

What are the 6 types of graphs

Types of graphs math

Cool graphs in PowerPoint

Dynamic charts in PowerPoint

How to present graphs in PowerPoint

How to create a chart in PowerPoint from Excel data

Types of graph with example

More results

India

Arkula Proper, Karnataka - Based on your past activity - Learn more

Terms

5 0
3 years ago
THERES THIS USER ON HERE WHO IS TAKING ALL YOUR POINTS SO I DID THE SAME THING TO HER CUZ SHE DID IT TO ME...SO WHY DONT WE ALL
GaryK [48]

Answer:

That is so low and I don't understand why that's necessary for her to do. Smh.

Explanation:

8 0
3 years ago
Other questions:
  • A spreadsheet program has many subparts. What is the smallest unit in a spreadsheet?
    9·2 answers
  • Résumés for teenagers and young adults typically consist of<br> (Apex)
    11·2 answers
  • 6. Write a program that can multiply an n x m matrix and m x n matrix together: The input specifications are these: Read n and m
    11·1 answer
  • Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. What critical detail must she ha
    9·1 answer
  • Discuss, in brief thedifferent variations of BLAST. (Maximum 5 innumber)
    10·1 answer
  • Menus are attached to the windows by calling
    15·1 answer
  • Rewrite the following using if else statement:
    14·1 answer
  • Raman will perform in pune tomorrow(simple past)​
    11·2 answers
  • _____is detection of events within a given set of parameters, such as within a given time period or outside a given time period.
    13·1 answer
  • Chantal has configured the network at her company's new headquarters with a number of VLANs. All devices joined to the individua
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!