Find Jobs
Hire Freelancers

Code to solve 3 java problems

$10-30 USD

Ολοκληρώθηκε
Αναρτήθηκε περίπου 9 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
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.
Ταυτότητα εργασίας: 7367918

Σχετικά με την εργασία

30 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 9 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
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 ημέρα
5,0 (1 αξιολόγηση)
0,0
0,0
30 freelancers δίνουν μια μέση προσφορά $25 USD για αυτή τη δουλειά
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 ημέρα
4,9 (1007 αξιολογήσεις)
7,5
7,5
Avatar Χρήστη
Hello. It easy project, it can be completed in few hours .............................................
$20 USD σε 1 ημέρα
4,9 (604 αξιολογήσεις)
6,7
6,7
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 ημέρα
5,0 (248 αξιολογήσεις)
6,5
6,5
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 ημέρα
4,9 (265 αξιολογήσεις)
6,6
6,6
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 ημέρα
5,0 (94 αξιολογήσεις)
6,1
6,1
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 ημέρα
5,0 (51 αξιολογήσεις)
5,5
5,5
Avatar Χρήστη
I am an expert in delivering custom codes and also java willing to discuss further about the project.
$54 USD σε 2 ημέρες
4,9 (21 αξιολογήσεις)
5,5
5,5
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 ημέρα
5,0 (25 αξιολογήσεις)
5,0
5,0
Avatar Χρήστη
A proposal has not yet been provided
$25 USD σε 1 ημέρα
4,9 (50 αξιολογήσεις)
4,6
4,6
Avatar Χρήστη
A proposal has not yet been provided
$25 USD σε 1 ημέρα
4,8 (24 αξιολογήσεις)
4,7
4,7
Avatar Χρήστη
Hi, i am ready to start now....................................... ping me if interested...........................................
$30 USD σε 1 ημέρα
4,7 (41 αξιολογήσεις)
4,6
4,6
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 ημέρα
4,8 (18 αξιολογήσεις)
4,2
4,2
Avatar Χρήστη
I have more experience in java , I can finish this code in few hours , Open chat for further details .
$15 USD σε 0 ημέρα
4,5 (16 αξιολογήσεις)
4,0
4,0
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 ημέρα
5,0 (11 αξιολογήσεις)
3,4
3,4
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 ημέρα
5,0 (13 αξιολογήσεις)
3,2
3,2
Avatar Χρήστη
A proposal has not yet been provided
$25 USD σε 0 ημέρα
3,0 (25 αξιολογήσεις)
4,6
4,6
Avatar Χρήστη
A proposal has not yet been provided
$30 USD σε 0 ημέρα
4,8 (7 αξιολογήσεις)
2,7
2,7
Avatar Χρήστη
experienced Java programmer. can complete this work fast. Write some computation code. Matlab/Mathematica.
$15 USD σε 1 ημέρα
5,0 (10 αξιολογήσεις)
2,7
2,7
Avatar Χρήστη
already made this project years ago, having 10+ years experience in Java Technologies. Assume it done.
$10 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
A proposal has not yet been provided
$30 USD σε 1 ημέρα
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της UNITED STATES
Iowa City, United States
4,9
16
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Σεπ 23, 2014

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.