Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

java

  1. Akhter

    JavaScript Sum textbox value with Gridview Column of Credit

    i want to sum Textbox(txtamount) value with Gridview Column Credit value,and display in footer. $(function () { CalculateDebitCredittotal() }); function CalculateDebitCredittotal() { var creditTotal = 0; var debitTotal = 0; $("[id*=gvtrans]...
  2. Hilton D

    Java Java Exception Handling: Handling Checked Exceptions

    I'm working on a Java application that involves file I/O, and I'm dealing with checked exceptions, specifically FileNotFoundException when attempting to read a file. I want to handle this exception gracefully in my code. Here's a simplified version of what I'm trying to do: import...
  3. M

    Node.JS Code Assistance

    I'm currently working on a project where I need to implement a table filter using checkboxes, and I'm facing some challenges. I've managed to set up the basic functionality, but I'm struggling with a couple of specific requirements. I'm reaching out to the community for some guidance and...
  4. S

    Java Why there is no output in my code?

    package ejercicio2; import java.util.ArrayList; import java.util.Random; public class Ejercicio2 { private static ArrayList<Double> array = new ArrayList<Double>(); public static ArrayList<Double> rellenar(double min, double max, int tamaño) { Random random = new Random()...
  5. D

    JavaScript I'm trying to make a web extension that reverts youtube to an old layout, but i barely know anything about js or css

    so im trying to make a web extension that changes the current youtube layout to an old version that i plan on completely writing from scratch im trying to change the background but i think im doing it wrong this is my manifest script { "manifest_version": 3, "name"...
  6. Hilton D

    Java Differences in visual capabilities between Java applets and applications

    Is there anything a Java program can achieve that an applet cannot in terms of graphic capabilities? I'm talking about java libraries (such as Swing), not native ones. I need to design a graph visualization user interface, most likely utilizing the spring embedder technique. I saw this oracle...
  7. S

    Chess coding

    I have created a game of double chess that has been developed into an online game play.synergy chess.net I have noticed that chess.com is written in Java, JavaScript and PHP. Synergy Chess is written in ReactJS, NodeJS, Xitrium, Scala and Java. This makes it very hard to find qualified...
  8. datdatyul

    Java Spring Boot Microservices - How can I reach out another service method from another service in Junit Test.

    Hi, I have a problem about reaching out one url defnied in AuthController of auth service from any method of OrderControllerTest in order service. As I cannot reach out it, I still get 404 Not Found exception. How can I reach out it? I hope anyone can help me. Here is the link ...
  9. datdatyul

    Java Spring Boot Microservices - Spring Security Issue in one service throwing throwing java.lang.StackOverflowError in JUnit

    I have a problem in running any test method in service test and controller test in one of the spring boot microservices (order service). After I completed service and controller , I tried to write their test methods but I have a problem in there. How can I fix it? Here is the security config...
  10. SHjiwani

    Java How do I add exponents and parentheses to my code?

    This is the pastebin for my code: pastebin.com/gV01kTje Basically I have an assignment where I need to create a calculator capable of up to 3 step equations and being able to do all PEMDAS operations in PEMDAS order. So far I've gotten it up to 3 step operations and being able to do addition...
  11. B

    Java For loop to print out numbers in order

    Hi, I'm trying to write a code with for-loop to get numbers in order. For example 3,4,5,6 or -1,0,1,2,3. This is what I have come up with this far. public static void runLoop(int start, int end){ for (start <= end; start++){ System.out.print(start); } }
  12. B

    Java Do-while loop

    I'm trying to make a do-while loop that print out a + each time it runs. It works well but I need to solve how to make a condition to make in not to print a + if it runs 0 times. I get that do-while loops runs at least time but I need to make a condition. Example runLoop 4 = 4 and runLoop 7 = 7...
  13. datdatyul

    Java Spring Boot Microservice - 403 Forbidden among API Gateway and some services

    Hi , As I'ven't solved the okta issue for nearly one month, I created and auth service (creating user and login). I have a security problem about connection among auth service, api gateway and order service. After I created a user and then login, I tried to make a request to order service...
  14. datdatyul

    Java Java Stream Not Calculating the total count after filtering and grouping by

    I have a problem about writing a java stream by filtering multiple conditions , groupby multiple condition (if possible) and calculating the sum value I store the values as `Map<String(pId),List<Person>>` Here is my Person class shown below public class Person{ private...
  15. datdatyul

    Java Spring Boot Microservices - JUnit Controller Test JWT Issue

    I have a problem about solving JwtGrantedAuthoritiesConverter in order service after defining preauthorize annotation in some methods of Order Controller. After I wrote the test shown below, I tried to run it but I got this issue shown below as well. I also shared my repo as a link. How can I...
  16. datdatyul

    Java Spring Cloud API Gateway JWT Issue java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter

    I have a problem about sending any request to a defined service through api gateway with the usage of bearer token coming from login. After login, I tried to send a request to a defined service but I got this issue in JWTAuthenticationFilter of api gateway shown below. I think there can be...
  17. D

    Java How do I solve this Java riddle?

    I have the following riddle: How do I solve this in Java, using while loops? I had an idea on how to do it with for-loops, but it doesn't work using for-loops So far, all I have is the following, which seems to be going through all possible combinations, but is incredibly slow, so I suspect...
  18. Shinichi

    Java Cordinates of a point in a TreeSet

    Hey I wanted to ask if you could help me with my code. I am supposed to write a class point which shows a point in the plane. A Treeset shouldn't contain more point objects with the same cordinates. Also in TreeSets the point objects should be sorted by their distance to the coordinate origin. (...
  19. nebmucoy674

    Java Package required in .java using Eclipse? (first project)

    Hey all, I hope this thread finds everyone well! I'm new to Java and this is literally my first project. The school I attend requires us to use Eclipse. When I start a new "class" (which please correct me if I'm wrong is about the same thing as a new java program inside a java project?)...
  20. datdatyul

    Java Spring Cloud - Cannot send a request from one service to another one through Api Gateway

    I have an issue not sending a request from one service to another one through api gateway in my spring cloud example, Api gateway port number is 8600. I try to send a request from management service to advertisement service through api gateway, I get the issue in Postman shown below. {...
Back
Top Bottom