32,204 Topics
| |
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() … | |
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 … | |
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. | |
Actually I'm studying sciences computer in Belgium | |
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 … | |
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 … | |
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 = … | |
#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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
I am new in c++, java and python | |
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. | |
i am newbie in programming i really need help on creating a job order form for my boss | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
May i knw how to write a program that can set goal, record food/drink consumed and record foodcomposition??? | |
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. … | |
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 … |
The End.