Comments (4)
I intend to fix this by throwing an IllegalArgumentException if the user enters a string which is not an integer, which will print useful feedback to the user. I plan to add two checks for integer parsing in the project. The first in the jButtonRemoveActionPerformed method, and the second in the jButtonAddActionPerformed method. These are the only instances of Integer.parseInt on the entire project.
from datavisualizer-java.
Now that I think about it, it's probably better to instead catch a NumberFormatException then print a useful message to the user in the GUI itself.
from datavisualizer-java.
Thank you for your contribution. We reviewed your update and provided feedback, and I just looked at your comment, we had suggested the same :-)
Please update the submission.
from datavisualizer-java.
Thank you for the update.
from datavisualizer-java.
Related Issues (16)
- Multiple selection HOT 5
- Stack - Remove on empty stack HOT 2
- Stack - Deletion with duplicate values
- Stack - Inconsistent Display HOT 1
- Incorrect Image Display HOT 1
- New Data Structures
- Remove 'remove' text field HOT 3
- Lists - add(), addRandom() HOT 2
- Code is missing comments
- Add Comments to Interface DataStructure
- Resizing "DS Visualizer" frame
- Empty Data Structure Display
- DS Selector - Default Selection HOT 1
- Queue - Remove All functionality
- Queue - Remove on Empty Queue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datavisualizer-java.