32,204 Topics

Member Avatar for
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
26
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
195
Member Avatar for Yogendra_2
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
210
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
85
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
90
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
85
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
328
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
387
Member Avatar for Bamdele
Member Avatar for rproffitt
0
67
Member Avatar for Saboor880

Hello to all! I have been Using google firebase with my android apps for more than 2 years. Today while developing a new app I am facing a weird problem. I set up my firebase project on Google firebase Console successfully. I write the code to push data on firebase …

Member Avatar for rproffitt
0
529
Member Avatar for IMRAN_35

I am student of Java and working freelancer for different companies. I am intrested to work with project enviroment. Please support for practical work in developer backend

0
20
Member Avatar for Gabriela_4

Hello! So I have this homework that i have no idea how to continue. this is an exemple of input,but i have to do it for a general one: **7 pencils car ball candy tshirt bike video_game Mike Andrew Inna** and the output must be like this: **Mike: pencils candy …

Member Avatar for rproffitt
0
168
Member Avatar for Keep_2

Yeah, same with the topic how can I become a Java master or advanced? Now I have finished Programming 2, but I don't know that, which level of my skill in java, and I want to know what how does Java master coding looks like?? Thank you

Member Avatar for Reverend Jim
0
78
Member Avatar for Archenemie

Im looking for the "best" GUI builder for java. I use Eclipse to write my scripts, and i would appreciate you guys telling me your favourite GUI Builder and the reasons why. Thanks

Member Avatar for dotxyteam
0
2K
Member Avatar for hamad_2

Q2. Write a method called countOdds in java that takes an array of 10 integers as a parameter which is given by the user. The method counts the odd numbers in the elements and return the count. please can someone help me with this its java programming

Member Avatar for rproffitt
0
35
Member Avatar for Muchui_1

here is my code... JnS Print Halt Print, HEX 2 PrintString, Load PrintName Skipcond 800 JumpI Print Output Clear Load PrintName Add Increment Store PrintName Clear Jump PrintString PrintName, DEC 0 HEX 043 HEX 048 HEX 045 HEX 041 HEX 048 HEX 030 HEX 030 HEX 030 Increment, DEC 1 …

Member Avatar for rproffitt
0
29
Member Avatar for ky123

May i knw how to write a program that can set goal, record food/drink consumed and record foodcomposition???

Member Avatar for Prasad_9
0
112
Member Avatar for Ptr_921

Implement a class Average which consists of the main method and average method. Inside the main method, call average method. Print the value return by the average method. Next, overload the average method such that if three integers are provided as parameters, the method returns the average of all three. …

Member Avatar for Dani
0
41
Member Avatar for KINYUA_1

Am having trouble implementing a conditional structure for the BillingClient class method queryPurchases(String y) to check if user has an active subscription and let him download an image in the wallpaper app else prevent him from doing so. Am having trouble getting a comparison target for the if method here …

Member Avatar for Mr.M
0
53

The End.