About 48,600 results
Open links in new tab
  1. Basic Calculator using Java Swing and AWT

    Jul 11, 2014 · I created a basic desktop calculator using Java. Does anyone have any suggestions as far as coding best practices, readability issues, or just generic coding mistakes I might have missed? Any professional input you could provide would be …

  2. algorithm - Gram-Schmidt process in Java for computing …

    May 19, 2019 · package net.coderodde.math; import java.util.Arrays; import java.util.Objects; /** * This class implements a vector/element in a {@code n}-dimensional space. * * @author Rodion "rodde" Efremov * @version 1.6 (May 17, 2019) */ public final class Vector<E> { /** * The actual vector contents.

  3. java - Validate and import data from an Excel file - Code Review …

    This doesn't make it clear that the input is invalid and the import can't continue — the caller has to remember to check the result. It would be clearer to have them throw exceptions on failure. In validateRecords , configuration and sequence are unused.

  4. Implementing my own Pair class in Java - Code Review Stack …

    Jan 17, 2022 · I want to implement my own Pair template class which will be used as the key in a HashMap or possibly other collections. What I have done so far is this: import java.util.Objects; public class Pai...

  5. java - Converting Morse Code - Code Review Stack Exchange

    Challenge. Write a program which reads a file containing Morse Code and outputs the conversion. Specifications. The first argument is a path to a file.

  6. java - Student details project - Code Review Stack Exchange

    Dec 9, 2012 · ^ Avoid declaring multiple variables on one line in Java. It hampers readability and promotes using the same modifiers for all your variables when in reality they should be different (ex. final, volatile, etc). ^ public void setAge(int age) { this.age = age; }

  7. Implementing a Directed and Undirected Graph in Java

    Sep 4, 2020 · I am learning Graphs on my own and want to use a graph for a personal small project, so I decided to take a look here in Code Review for some cool implementations and came across this one by Maksim

  8. java - Swing GUI application to change colour of circle with JSlider ...

    Nov 13, 2018 · The below code works as intended and I'm generally happy with it - the sliders each change an RGB value to modify the color of the circle in circlePanel. Likewise the diameter slider changes the si...

  9. java - Finding Build Order For Packages With Dependencies

    Apr 19, 2020 · I rewrote some of your code, from your class Project: public class Project { String id; Set<Project> dependencies = new HashSet<>(); static Project withId(String id ...

  10. java - Number to spanish word converter - Code Review Stack …

    Sep 29, 2015 · This converts from a number to a Spanish word for example : 100 => cien 200 => doscientos I used a divide-and-conquer approach: Constants: package numberTranslator; import java.util.Arr...

Refresh