
The Coding Forums » Java
1,000 FOLLOWERS
Coding Forums is the place to chat about anything related to programming and coding languages. Java development queries are posted here, learn programming basics, ask for help and find tutorials & guides.
The Coding Forums » Java
5d ago
Hello Everyone I have a problem with the void stuff in java I do not understand exactly what it does I did this code and I put public static void in the Mayor method but java told me that it can not be used there now this code works but I do not understand exactly how the void statemente works, any help will be so useful thank you so much
package pruebas.pruebasbuenas;
import java.util.Scanner;
public class granja {
public static void main(String[] args){
Scanner input = new...
Read more ..read more
The Coding Forums » Java
6d ago
Hi,
everyone I have following code I want the filled circle to remain within the drawn path or dont slip out of the curved (although it can) if it happens the game ends, (I don't want to bound it to the path) I have been working on this can't help myself finding a solution.
Code:
<html>
<head>
<style>
#canvas {
border: 1px solid black;
}
</style>
</head>
<body>
<div>
<canvas id="canvas" width="500" height="500"></canvas>
</div>
<script>...
Read more ..read more
The Coding Forums » Java
6d ago
NETBEANS_UPDATE_RESOURCES (.netbeans_update_resources) file type ..read more
The Coding Forums » Java
1w ago
to create a class with the same utility that the decompiled java class file but for other classification of other information ..read more
The Coding Forums » Java
2w ago
my code is currently generating stairs based on the rounds, such as 16 in round 1, 32 in round 2 etc. so the problem is as the stairs go higher, the stairs start eating into each other's space. If possible, can anyone fix this problem? PS: I am using java swing. this is all generated on a jpanel.
int totalSteps = rdSteps;
int stairWidth = 5000;
int stairHeight = 50;
int width = 50;
int screenY = 0;
int currentStairY = stairHeight;
int currentStairX =...
Read more ..read more
The Coding Forums » Java
1M ago
Can I use the preview MemoryLayout/ValueLayout API, with its associated classes and interfaces, to adjust how float and double
do their arithmetic to results? I want to acheive something like the following:
Code:
float == [int].[int]
double == [long].[long]
where the Right Hand Side represents value formatting around the decimal/hexadecimal values around the dot separator point,
and the Left Hand Side represents floating point values themselves...
Read more ..read more
The Coding Forums » Java
1M ago
I have a page with some images displayed as modals inside accordions, simple 3 image across grid- works as planned click on image modal with caption and close button displayed- these are "open one at a time" accordions- if A is opened B closes / if B is opened A closes / so only 1 accordion is expanded at a time
no navigation I used W3 schools CSS and JS samples to put together to achieve and works as I intended-
I needed navigation for the images once clicked simple back/forward/exit (or...
Read more ..read more
The Coding Forums » Java
2M ago
Is there anyone else out there frustrated with Java OpenJDK floating point errors through float and double and StrictMath? These errors could be repaired by using a symmetrical y=2^n, or openlibm instead of fdlibm. These problems could be solved with, say, 95% compatability intact on the double. If this problem can be mostly solved, I dare anyone capable and willing with Java, C and Assembly to express interest here to give such a go, and to republish the results on Sourceforge!...
Read more ..read more
The Coding Forums » Java
2M ago
Hello everyone, I bring you a class that versions the Python eval() function in the Java language. It's the third attempt and I think it's a good idea to upload it to github so they can review it. I have tested it a lot but I am sure that the errors will be found by you, since I have found it correct so far. There is some technical information at the beginning of the class. I hope the errors don't appear too fast xD. All the best!
GitHub - marioAndreu/Java: Code by Mario Andreu Beltran
Code by Mario Andreu Beltran. Contribute to marioAndreu/Java development by creating an account on GitHub ..read more
The Coding Forums » Java
2M ago
Hello I need to write a function that only takes an array as parameter(this is the one and only parameter) but u can variables
The method should return the maximum number of values in a row that their sum is divisible by 2 for example
For [2,5] it returns 1 because 2 is divisble by2
For [2,1,2] also 1 becasue only 2 is divisble by in a row
For [4,2,4] it returns 3
For [3,3,1] returns 2
In the complexity of O(n)
Please help ..read more