31,001 Topics

Member Avatar for
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
51
Member Avatar for affulransford27
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
710
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
843
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
87
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
52
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
22
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
112
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
224
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
182
Member Avatar for Debby0424

Hello All, I am submitting a inventory program that I need some help with. I had to create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit. Then I needed to create a java …

Member Avatar for Batha
0
7K
Member Avatar for Gonzalo_3

Hello, I'm studying from 0 to programming in Java and I would like to get, if someone can share, some PDF with solved basic exercises of programming in Java, preferably in Spanish. My current level is Hello world and little else. Thank you.

Member Avatar for rproffitt
0
28
Member Avatar for foumzeur
Member Avatar for i202420

I have a java program realated to account management system in that program i want to calculate zakat, but the main issue is that the zakat should be calculated after 1 year. When the user create the account the current time and date should be displayed. So, pls tell me …

Member Avatar for rproffitt
0
27
Member Avatar for foumzeur

Hi, I'm facing a problem: I've to make an undo/redo using Command's design pattern. I've succed to make one, but when I want to use my undo/redo btn in an other view, it gives me an NullPointerException. Does anyone can help me? Here's the code of the 2 view's First …

Member Avatar for JamesCherrill
0
204
Member Avatar for rhea_6

package student; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StudentA stud1 = new StudentA(); System.out.print("Please Enter Student Name:"); stud1.Name = scan.next(); System.out.print("Please Enter Student ID:"); stud1.StudentID = scan.next(); System.out.print("Please Enter Course:"); stud1.Course = scan.next(); System.out.print("Please Enter Student Section:"); stud1.Section = …

Member Avatar for Paul Norris
0
84
Member Avatar for Maulana_1

#include<stdio.h> main() { int A[9]={6,3,1,5,7,4,2,8,9}; int Temp, I, J, K; printf("sebelum \n"); for(I=0; I<=9-1; I++) { printf(" %d ", A[I]); } for(K=0; K <= 9; K++) { J = K; for (I=K+1; I<=9-1; I++) { if (A[I] < A[J]) J = I; } Temp = A[J]; A[J] = A[K]; A[K] …

Member Avatar for rproffitt
0
89
Member Avatar for ventus.solllll

the qestion is Implement a java project to help in the study analysis with the following steps: • Read from the user the number of cities (minimum 6 cities.) •For each city: city name and the number of persons (minimum 10 persons) are entered. • For each person in a …

Member Avatar for JamesCherrill
0
70
Member Avatar for هات

I have a site that I follow frequently The problem is that it refreshes the page every five minutes And I never want this. Here, an addition to the Firefox browser named "stop auto reload" When you put the name of this site, it prevents it from updating every five …

Member Avatar for rproffitt
0
84
Member Avatar for tinstaafl

Basically this scheme uses variable offsets, but it generates the bytes on the fly. They aren't truly random, but there aren't any obvious patterns and the output passes all the NIST tests. Since a simple password can be used to do the de/encryption it is much easier to hand off …

Member Avatar for JamesCherrill
2
316
Member Avatar for SmallDev

Hi everyone, I'm new in Android World. I'm trying to implement the audio-game of Memory; each tile is represented by a button to which a sound is associated. Now, I have to verify the sounds of a pair of tiles (the buttons that the user clicked) are the same, but …

Member Avatar for rproffitt
0
27
Member Avatar for Simiyu
Member Avatar for manay

Hi! May I seek for your help on how to calculate the number of days between two dates excluding weekends and public holidays using javascript. Also, how to calculate the end date (start date and duration given) excluding weekends and public holidays. Thank you.

Member Avatar for AlbertinaGeller
0
380

The End.