Find Jobs
Hire Freelancers

Code to solve 3 java problems

$10-30 USD

Suoritettu
Julkaistu noin 9 vuotta sitten

$10-30 USD

Maksettu toimituksen yhteydessä
In problems 1-3, you should not at any point call the stack's size() method or directly access its size. Problem 1: Create a class called StackSummary that implements this interface. It will have a private Stack for a field. Use generics so your stack can be of any type. Your class constructor should initialize its stack as a new empty stack. Comments in the interface instruct you on what the methods of your class should do. All fields for your class should be private and it should not have any methods other than the ones required to implement the interface. Note that the StackSummary pop and peek methods need not return anything. Problem 2: Write a public static method called randomize() that has no parameters and returns a StackSummary. Your code for this method should be, at least lightly, commented. You will likely want to use Java's Random class for this method. The method should do the following: Create a new StackSummary object with an Integer stack. Push an integer with values randomly from 1 to 1000, 1 to 100 times onto the stack. Pop randomly from 1 to 100 times. Peek randomly from 1 to 100 times. Returns the resulting StackSummary All of these push, pop, and peek operations should be done in a random order. That is, you do not do all the pushes before the pops and peeks, they will be interspersed, that is, you will have sequences like this: push(554) pop() peek() pop() push(25) push(997) Problem 3: Write a public static method size that takes a StackSummary object as a parameter and returns the size of its stack. As mentioned at the beginning, you should do this without ever directly accessing the size of the stack.
Projektin tunnus (ID): 7367918

Tietoa projektista

30 ehdotukset
Etäprojekti
Aktiivinen 9 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
Hello, I have already solved the problems and I can send you the code the moment you accept my bid. I can send you a sample before accepting if you wish. Best Regards,
$10 USD 0 päivässä
5,0 (1 arvostelu)
0,0
0,0
30 freelancerit tarjoavat keskimäärin $25 USD tätä projektia
Käyttäjän avatar
Hi, I have read the requirements and I would like to do this project if given the opportunity. I am a computer science practitioner and having the "Java and Algorithms Certification Badge" in my profile gives me confidence and assurance that I can deliver you the project as required. Let me know if you are interested so I can start. Thanks.
$30 USD 1 päivässä
4,9 (1007 arvostelua)
7,5
7,5
Käyttäjän avatar
Hello. It easy project, it can be completed in few hours .............................................
$20 USD 1 päivässä
4,9 (604 arvostelua)
6,7
6,7
Käyttäjän avatar
HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif
$24 USD 1 päivässä
5,0 (248 arvostelua)
6,5
6,5
Käyttäjän avatar
Hi there I'm a senior software developer who have over 180 completed projects and my account was qualified by this site (my page: https://www.freelancer.com/u/DucNA.html). Btw, could you please send (or discuss with) me more detail? I'll check and then will let you know my estimation (time and coding effort) for this task. Best regards, Duc Nguyen
$24 USD 0 päivässä
4,9 (265 arvostelua)
6,6
6,6
Käyttäjän avatar
Hello, I can get this work done in the next 12 to 24 hours. Let me know if you are interested. Thanks
$25 USD 0 päivässä
5,0 (94 arvostelua)
6,1
6,1
Käyttäjän avatar
Hello, Good day to you. I am Java expert. I understand your requirements and very interested in your project. I am willing to help you do this project right now. Please contact me. Thank you
$55 USD 1 päivässä
5,0 (51 arvostelua)
5,5
5,5
Käyttäjän avatar
I am an expert in delivering custom codes and also java willing to discuss further about the project.
$54 USD 2 päivässä
4,9 (21 arvostelua)
5,5
5,5
Käyttäjän avatar
Hello, I am a software engineer experienced in Java. I can complete your prj within one day, properly commented and tested.
$30 USD 1 päivässä
5,0 (25 arvostelua)
5,0
5,0
Käyttäjän avatar
A proposal has not yet been provided
$25 USD 1 päivässä
4,9 (50 arvostelua)
4,6
4,6
Käyttäjän avatar
A proposal has not yet been provided
$25 USD 1 päivässä
4,8 (24 arvostelua)
4,7
4,7
Käyttäjän avatar
Hi, i am ready to start now....................................... ping me if interested...........................................
$30 USD 1 päivässä
4,7 (41 arvostelua)
4,6
4,6
Käyttäjän avatar
We are Egyptian team, and i am sure that you will get our work is a great as you expect, all of team have a diploma in javaSE, JavaEE, JavaFX using many technologies like Struts1, Struts2, Hibernate, JPA, Spring, Spring MVC, Spring Security, EJB, JSF, Primefaces, Webservices and all of us familier with XML, Javascript, AJAX, Web Services .. etc Also we have members who have a diploma in Andriod, JavaME, IOS, Blackberry applications. We are a team of programmers who have many skills in programming generally and in java specifically. we worked on a projects for a big companies like vodafone, Etisalat and many banks. We have knowledge about many fields of business. I can assure that you'll get your work done in an efficient way.
$55 USD 0 päivässä
4,8 (18 arvostelua)
4,2
4,2
Käyttäjän avatar
I have more experience in java , I can finish this code in few hours , Open chat for further details .
$15 USD 0 päivässä
4,5 (16 arvostelua)
4,0
4,0
Käyttäjän avatar
Hello. I can help you get this done in a few hours. I can start working right away. Please contact me on chat so we can discuss further details. Thank you!
$30 USD 1 päivässä
5,0 (11 arvostelua)
3,4
3,4
Käyttäjän avatar
Hello sir, Am expert in java for 4 years, am recently graduated. So am familiar with these kind of tasks. I read the description, and checked the interface file. It is an easy task for me, and i can finish it in no time.. I'm ready to start upon your request. Thanks, Mohamed
$25 USD 0 päivässä
5,0 (13 arvostelua)
3,2
3,2
Käyttäjän avatar
A proposal has not yet been provided
$25 USD 0 päivässä
3,0 (25 arvostelua)
4,6
4,6
Käyttäjän avatar
A proposal has not yet been provided
$30 USD 0 päivässä
4,8 (7 arvostelua)
2,7
2,7
Käyttäjän avatar
experienced Java programmer. can complete this work fast. Write some computation code. Matlab/Mathematica.
$15 USD 1 päivässä
5,0 (10 arvostelua)
2,7
2,7
Käyttäjän avatar
already made this project years ago, having 10+ years experience in Java Technologies. Assume it done.
$10 USD 1 päivässä
0,0 (0 arvostelua)
0,0
0,0
Käyttäjän avatar
A proposal has not yet been provided
$30 USD 1 päivässä
0,0 (0 arvostelua)
0,0
0,0

Tietoja asiakkaasta

Maan UNITED STATES lippu
Iowa City, United States
4,9
16
Maksutapa vahvistettu
Liittynyt syysk. 23, 2014

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.