Find Jobs
Hire Freelancers

Code to solve 3 java problems

$10-30 USD

Selesai
Dibuat hampir 9 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
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.
ID Proyek: 7367918

Tentang proyek

30 proposal
Proyek remot
Aktif 9 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
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 dalam 0 hari
5,0 (1 ulasan)
0,0
0,0
30 freelancers are bidding on average $25 USD for this job
Avatar Pengguna
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 dalam 1 hari
4,9 (1007 ulasan)
7,5
7,5
Avatar Pengguna
Hello. It easy project, it can be completed in few hours .............................................
$20 USD dalam 1 hari
4,9 (604 ulasan)
6,7
6,7
Avatar Pengguna
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 dalam 1 hari
5,0 (248 ulasan)
6,5
6,5
Avatar Pengguna
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 dalam 0 hari
4,9 (265 ulasan)
6,6
6,6
Avatar Pengguna
Hello, I can get this work done in the next 12 to 24 hours. Let me know if you are interested. Thanks
$25 USD dalam 0 hari
5,0 (94 ulasan)
6,1
6,1
Avatar Pengguna
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 dalam 1 hari
5,0 (51 ulasan)
5,5
5,5
Avatar Pengguna
I am an expert in delivering custom codes and also java willing to discuss further about the project.
$54 USD dalam 2 hari
4,9 (21 ulasan)
5,5
5,5
Avatar Pengguna
Hello, I am a software engineer experienced in Java. I can complete your prj within one day, properly commented and tested.
$30 USD dalam 1 hari
5,0 (25 ulasan)
5,0
5,0
Avatar Pengguna
A proposal has not yet been provided
$25 USD dalam 1 hari
4,9 (50 ulasan)
4,6
4,6
Avatar Pengguna
A proposal has not yet been provided
$25 USD dalam 1 hari
4,8 (24 ulasan)
4,7
4,7
Avatar Pengguna
Hi, i am ready to start now....................................... ping me if interested...........................................
$30 USD dalam 1 hari
4,7 (41 ulasan)
4,6
4,6
Avatar Pengguna
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 dalam 0 hari
4,8 (18 ulasan)
4,2
4,2
Avatar Pengguna
I have more experience in java , I can finish this code in few hours , Open chat for further details .
$15 USD dalam 0 hari
4,5 (16 ulasan)
4,0
4,0
Avatar Pengguna
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 dalam 1 hari
5,0 (11 ulasan)
3,4
3,4
Avatar Pengguna
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 dalam 0 hari
5,0 (13 ulasan)
3,2
3,2
Avatar Pengguna
A proposal has not yet been provided
$25 USD dalam 0 hari
3,0 (25 ulasan)
4,6
4,6
Avatar Pengguna
A proposal has not yet been provided
$30 USD dalam 0 hari
4,8 (7 ulasan)
2,7
2,7
Avatar Pengguna
experienced Java programmer. can complete this work fast. Write some computation code. Matlab/Mathematica.
$15 USD dalam 1 hari
5,0 (10 ulasan)
2,7
2,7
Avatar Pengguna
already made this project years ago, having 10+ years experience in Java Technologies. Assume it done.
$10 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
A proposal has not yet been provided
$30 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
Iowa City, United States
4,9
16
Memverifikasi Metode pembayaran
Anggota sejak Sep 23, 2014

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.