32,199 Topics
| |
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> >(); … | |
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 … | |
El Java sdk como elemento esencial para la creacion de aplicaciones para moviles en la Era post Covid-19 | |
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; … | |
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 … | |
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() … |
The End.