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. J

    Java Connect 4 with JAVAFX and AB Pruning

    Hello! I'm currently programming a Connect 4 Game with JAVAFX and I'm struggling a bit with the AI and my Game restart method. Somehow my AI is doing "random" moves and isn't really trying to win. If you restart the game, it clears the board, but your clicks on the rectangles strangely don't...
  2. cuhlecainez

    Java Problem with logic in Tower of Hanoi DFS Implementation

    Right now I am trying to implemt DFS search within Tower of Hanoi. I am getting hung up with an error. I think it is something to do will my logic on the successor functions. Any advice where to start looking. Console Log: [1, 2, 3] [] [] [2, 3] [1] [] [3] [1] [2] Exception in thread "main"...
  3. G

    Java Why does my code return zeros when calculating average values?

    import java.util.*; // Scanner, Locale class TempTest { public static void main(String[] args) { System.out.println("TEMPERATURES\n"); Scanner in = new Scanner(System.in); in.useLocale(Locale.US); System.out.print("how many weeks: "); int...
  4. G

    Java How to get the weekly sum value from user input in java?

    import java.util.*; // Scanner, Locale class TempTest { public static void main(String[] args) { System.out.println("TEMPERATURES\n"); Scanner in = new Scanner(System.in); in.useLocale(Locale.US); System.out.print("hoe many weeks: "); int amountWeeks = in.nextInt(); System.out.print("how many...
  5. DictatorPanda

    Java Restart Button Not Working (Processing 3)

    Good day/night! A few friends and I are making a game for class. Everything's done, but there's a strange bug happening with the Start button. When you hit 'Start' the first time, the game runs, you win or lose, and if you want to play again, you hit the restart button, and it'll send you back...
  6. T

    HTML & CSS HELP - Shipping Rate Calculator

    I am trying to add a shipping rate calculator to my website - like the attached images and below site. https://www.betweenbox.com/shipping-cost/ I would like to show a range of different carriers like... Royal Mail, FedEx, UPS, DHL I have been searching the internet for hours and have not got...
  7. Kiscode

    Java Pattern homework

    Hello, I was given an assignment in college to do in Java. Otherwise, I will be thrown off the scholarship and it will be very tight, nothing is clear on YouTube and forums. For experienced coders, I think it will take a minute, because for a college work.😞😞 ////////the task Company N delivers...
  8. P

    Intonew Startup (Join Us)

    5 positions open for a startup in Eastern, PA (long distance is most definitely an option thanks to technology!) Reinventing the way we see the world (more details during/after interviewing process) We are looking for (1 or many) A Programmer who is fluent in C, C++, or Java. (Arduino...
  9. S

    HTML & CSS Pink effect hovering image

    Hi there, I'm trying to apply a color effect to several images in the same page. The image should turn in pink tones when hovering. I was able to do this to one image with SVG (and a lot of CSS). The problem is that I need to apply this to many images in the same page, and the code gets very...
  10. Power_terminated

    Java HELP - Beginner Uni project

    I am trying to make a grid where I have 3 different coloured squares the weeds being limited to 7 and the farmer being just 1 square. The rest of the grid is supposed to be green where there is not any of these other 2 blocks. Eventually I will have to use the collide(); in order for the...
  11. Fire Monk

    Java Please help me with the code (Level beginner)

    import java.util.*; public class doodle { public static void main(String[] args) { // Complete your code here Student s1= new Student; String n = "Ankit"; s1.Student(n); //This is creating the problem. Compiler can't understand what is Student...
  12. J

    Java PLEASE HELP / Java HTTP Server receiving JSON/POST Data

    Hello everyone. I am trying to send JSON Data from my JavaScript file to a Java Application. Since I m not that experienced when it comes to network-programming, i hoped for some help in here. I managed to get this code from the internet but i dont understand everything. package bkServer...
  13. T

    Java Cannot find symbol for constructor

    When I try to put strings in the monster constructor it comes back with symbol not found and I am unsure as to why public class Monster { private String name; private String[] types; private Move[] moveList = new Move[4] public Monster (String name, String type) {...
  14. Alpheron

    Java A* Implementation in Java

    Hello Everyone, I was recently working on a project where I would be given an image of a field in which a robot would traverse and find the optimal path given a start point and endpoint. I was thinking of using converting the image to 1's and 0's depending on an obstacle's positioning on the...
  15. M

    Java Good Frameworks/Libraries For Developing Java Desktop Applications?

    Hey there. I'm quite interested in toying around with building desktop applications with the Java programming-language. Aside from Java's AWT, Swing, and JavaFX(They can't seem to make their mind-up on what to use as a library), what other frameworks/libraries are there for developing Java...
  16. M

    Java Running A Java Program

    Hey there. If you're just starting to learn Java, then I suggest you read this tutorial. You probably write all of your Java code inside an IDE(Eclipse, IntelliJ, NetBeans, etc.) and also run that code inside the IDE. The thing is, you're gonna want to acquaint yourself with compiling and...
  17. M

    Java Your Opinion On Java?

    Hey there. So, I think it's pretty apparent by now that the tech world's opinion on Java is highly divided. Some people like Java, some people don't, and some people are in the middle. Java, as both a language and software-platform, has come under many harsh reviews by both users and...
  18. M

    Java An Explanation Of Java

    What Is Java? Invented by James Gosling and a few other amazing programmers in at Sun Microsystems back in 1995/1996, Java is a multi-paradigm, object-oriented programming-language. As stated, Java is a multi-paradigm language, but it's core paradigm is object-oriented. So, all of your...
  19. LenniCodes

    Java How can I control Spotify-Desktop with Java?

    Hi there! I am trying to make a java-program to control the Desktop Spotify-Program... not with the Web-API... it should't need to be a premium spotify-account. I don't know how to do... anybody ideas? :)
Back
Top Bottom