32,204 Topics
| |
Write a Java code using Factory Method design pattern to solve the following relationof Products, Factory, DistributorandClients.-The distributorsellsproduct including:Laptop,PC monitorand TV.-Each product has its own descriptions detail: getDetail() | |
I want to know how to create a software | |
Create a Client/Server using DatagramSocket and DatagramPacket Programming and using DiffieHellman (1024) as encryption algorithm. | |
<html> <head> <title> Exercice 6</title> </head> <body> <h1>Hello</h1> <script language= "java script"> var N=prompt("Choisissez entre: 1-addition et 2-multiplication",""); if (N==1) { document.write("<table border="2" align="center" rules="alls">"); for (var i = 0; i<=9 ; i++) { document.write("<tr>"); for (var j=0; j<=9; i++) { var s=i+j; document.write("<td>"+s+"</td>"); if (j%3==0) { document.write("</tr>"); } } … | |
Not an ArrayList. An Array. For some reason, my teacher (or rather, the lesson plan we are using) requires that we make a program that takes an array of integers and removes all the zeroes. So far I have: [CODE] public void remove(int index) { for(int i = index; i … | |
Write a Java program using JavaFX in which user enters a number and clicks a button to check whether given number is palindrome or not. Display the result in another text field. | |
There are 3 different types of tags in a library: red, green, blue. There are two different arrangement methods planned for the arrangement of the shelves, and 42 books can be arranged on these shelves. ( mathematical) Lineup A: Red, green, blue books will be lined up in a row … | |
The dice menu has two different options. In the first option, 2 standard dice are thrown randomly and the results are reflected on the screen. If desired, the results of these dice are recorded and the user is asked whether he wants to roll the dice again. In the second … | |
How can there be a namestore of 10 names in this code? A random name is chosen from among these 10 names. how can i add? import java.io.*; import java.util.ArrayList; import java.util.Random; public class kelimebul { public static void main(String args[])throws IOException { String kelime = "hakan";int i,tahmin=0,anahtar=0,dogru=2; String eldevar[] … | |
the time and space complexity of binary and linear search | |
Write a javascript program to display a text after every x seconds, where x is a number from geometric series with coefficient term (a) = 3 and common ratio is 2 eg: The text will be displayed after 3 secs, then after 6 sec, then after 12 sec and so … | |
Using Java 2 method and basic dialog Create Best Pharmacy Billing System | |
(a) Create a class named LivestockProject with fields that hold a membership number, the name of the member, surname, date of birth, gender, location and initial number of livestock (cattle) turned in. Include a constructor that initializes each field to appropriate default values. Also include methods to set and get … | |
help me to identify the problem with this code public class Calculate { int service; } int price(int total, int amount, int currency)//overloading { int price(int total, int amount)//overloading { return service; } } C:\Users\User\Documents\Calculate.java:12: error: class, interface, or enum expected int price(int total, int amount, int currency)//overloading ^ C:\Users\User\Documents\Calculate.java:17: … | |
Write a Java program that asks the user to enter items until the user chooses to stop, stores them into links (nodes), and chains the links together into a linked list. You will need to make the following changes Your linked list should store information about Customers' Transactions that . … | |
Which is the best user-friendly programming language to be used for developing an ecommerce website? | |
i want java mcq. i need help in java | |
package Dialogs; import java.text.DecimalFormat; import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); Scanner newdata =new Scanner(System.in); DecimalFormat df = new DecimalFormat(".00"); int newprogram; int count = 0; double Total1; System.out.print("How many items in a counter? : "); int Item = sc.nextInt(); String new1 [] = … | |
I want to know how to create games | |
Write C++ Function named “ReverseIt” in which use enter a number, program reverse it and display reversed number on the console | |
Hello! guys, I am developing a java game, "the rabbit, turtle, bird," I have a small problem, I do not know how to put attributes to the objects created, for example, a goal of 60 feet, the turtle walks " shift "of 4-8 meters, 6-12 rabbit, but has a 60% … | |
I am looking to sort an arraylist of arraylist of doubles and I require help? I was informed that I need to implement comparator or comparable and then use the collection.sort to sort the list of list in order... ArrayList<ArrayList> list = new ArrayList<ArrayList>() If you look at the list … | |
i have a script in clojure that can read a string of integers separated by commas from a file..the scrip is succesful and reads the line from the file as astring,all i want is some clojure loop to scan the string for integers and add to an integer array here … | |
ArrayList<ArrayList<Double> how to sum an arraylist of and arraylist the += does not work marks an error. | |
Good day I am trying to get a total of two numbers. The first number I need to get form my page (the number changes every few seconds (crypto clicker) Second number must be 35 This is the code I got after search, but do not know how to get … | |
I want to check if the last numbers in an arraylist are a 10.My data is in a 2d arraylist with 110 elements every 10 numbers is one node, I want to verify that the last digit of each node is a 10. example: 1,2,3,4,5,6,7,8,9,10 in this case its true … | |
Check 4th element of an arraylist and compare it to an element. example: 1,1,2,4,1,2,3,4,1,2,5,1. so the 4th elements would be 4,4,1 and i want to compare that those numbers are the same as 4. I was thinking an if statemet would work. any recomendations? | |
How do I compare 3 Arraylist with each other and find the small, medium and large elements. I was thinking something like this but its not working. ArrayList<interger> a = new ArrayList<ArrayList<interger> >(); a.add(1); a.add(2); a.add(7); ArrayList<interger> b =new ArrayList<ArrayList<interger> >(); b.add(8); b.add(9); b.add(1); ArrayList<interger> c = new ArrayList<ArrayList<interger> >(); … |
The End.