32,199 Topics

Member Avatar for
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
726
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
866
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
Member Avatar for clementer

I would like to calculate the distance in 4d I have 2 arraylist that have all of my elements in it. How do make the formula i have this but its not calculating correctly the distance. List has diferent coordinates every time and t always has the same coordinates. double …

Member Avatar for JamesCherrill
0
46
Member Avatar for jp844133

El Java sdk como elemento esencial para la creacion de aplicaciones para moviles en la Era post Covid-19

Member Avatar for Dani
0
25
Member Avatar for clementer

I have an ArrayList of 750 elements I would like to divide that ArrayList into 150 subarraylists so 5 elements to each subarraylist. I have this code but it not working while (scanner.hasNextLine()) { String t = scanner.nextLine(); String[] ar = t.split(","); for (int i = 0; i < ar.length; …

Member Avatar for rproffitt
0
113
Member Avatar for clementer

I have an array list that looks like this. 8.1,6.5,4.4,3.2,1,8.9,5,1.4,0.1,1,8.7,6.2,4.3,3.2,3 I would like that my program selects every 5 numbers randomly. for example to select 8.1,6.5,4.4,3.2,1,8.7,6.2,4.3,3.2,3 as you can see it selected 5 numbers from the begging and 5 more from the end and saves them Random random_method = new …

Member Avatar for rproffitt
0
234
Member Avatar for SylveeAshley

I am writing a program that calculates the volume of a cylinder when you input the diameter and height, using the formula 1/4*height*3.14*diameter^2 However the issue is, whenever I do that, the volume always comes out to be 0 when I run the program. #include<iostream> using namespace std; int main() …

Member Avatar for Husoski
1
192

The End.