Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 64526

Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and run-time environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

5 votes

2048 Java clone

Manny Meng had lots of good suggestions. I have no idea about what this 2048 game is, but here are suggestions for changing the structure to eliminate duplicate code. ETA: One quick change is that y …
Pixelstix's user avatar
  • 246
3 votes

Slow SQL Server performance with multiple PreparedStatement loop

Here are some ideas to try: You are not closing your PreparedStatements. There might possibly be some slow down due to resource consumption or deadlock. Use the try-with-resources feature so it wi …
Pixelstix's user avatar
  • 246
0 votes

Program to provide CRUD operations for a Boxers(Fighter) table in a database

This suggestion is a total turn from your approach, so I'm sorry if that's unhelpful or not an option for you right now. You could use a JDBC driver that talks to SQLite. One of the more popular one …
Pixelstix's user avatar
  • 246
3 votes
Accepted

GUI 'simple notepad'

Automatic Resource Management Scanner is Closable, so you can use the automatic resources: try (Scanner content = new Scanner(new File(fileName))) { ... rest of code goes here, don't need a cont …
Pixelstix's user avatar
  • 246
2 votes

Buffon's Needle experiment

I also changed the function name from piCalc to calcPi so it reads a little better, and used the try-with-resources feature of Java 1.7 on Scanner. …
Pixelstix's user avatar
  • 246