32,204 Topics

Member Avatar for
Member Avatar for Cash_4

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()

Member Avatar for rproffitt
0
40
Member Avatar for Desamaladeepak
Member Avatar for Athar_3

Create a Client/Server using DatagramSocket and DatagramPacket Programming and using DiffieHellman (1024) as encryption algorithm.

Member Avatar for rproffitt
0
44
Member Avatar for jkook

<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>"); } } …

Member Avatar for rproffitt
0
30
Member Avatar for Xeros606

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Sneha_13

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.

Member Avatar for rproffitt
0
31
Member Avatar for Özde

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 …

Member Avatar for rproffitt
0
17
Member Avatar for Özde

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 …

Member Avatar for rproffitt
0
24
Member Avatar for Özde

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[] …

Member Avatar for rproffitt
0
73
Member Avatar for Suraj_43
Member Avatar for semahegn
Member Avatar for dipa_2

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 …

Member Avatar for rproffitt
0
20
Member Avatar for LZS_405
Member Avatar for jwenting
0
92
Member Avatar for Hope_9

(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 …

Member Avatar for rproffitt
0
147
Member Avatar for Błkèęš
Member Avatar for nur_721

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: …

Member Avatar for JamesCherrill
0
60
Member Avatar for روان

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 . …

Member Avatar for Dani
0
62
Member Avatar for EiBS

Which is the best user-friendly programming language to be used for developing an ecommerce website?

Member Avatar for rproffitt
0
31
Member Avatar for sabir khan
Member Avatar for LZS_405

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 [] = …

Member Avatar for stultuske
0
52
Member Avatar for affulransford27
Member Avatar for Alina99900000

Write C++ Function named “ReverseIt” in which use enter a number, program reverse it and display reversed number on the console

Member Avatar for rproffitt
0
24
Member Avatar for Joslup

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% …

Member Avatar for Ayesha_17
0
729
Member Avatar for clementer

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 …

Member Avatar for tinstaafl
0
878
Member Avatar for TimTheCoder

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 …

Member Avatar for tinstaafl
0
69
Member Avatar for clementer

ArrayList<ArrayList<Double> how to sum an arraylist of and arraylist the += does not work marks an error.

Member Avatar for JamesCherrill
0
25
Member Avatar for hennel

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 …

Member Avatar for hennel
0
92
Member Avatar for clementer

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 …

Member Avatar for JamesCherrill
0
26
Member Avatar for clementer

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?

Member Avatar for clementer
1
38
Member Avatar for clementer

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> >(); …

Member Avatar for Husoski
0
53

The End.