Tagged Questions
Java is an object-oriented language and runtime environment(JRE). Java programs are platform independent because the program execution is handled by a Virtual Machine called the Java VM or JVM.
0
votes
0answers
6 views
Is it secure to pass a password to Java from Jquery ajax callback in plain text?
Or do I need to encrypt it first. I'm using a password text field, grabbing it with
var pwd = $("#userpassword").val();
and then
$.post('JavaServlet', { formData: formData, pwd: pwd, date: date ...
0
votes
0answers
23 views
Java String equals
DatagramPacket receivePacket = new DatagramPacket(receiveData,
receiveData.length);
_socket.receive(receivePacket);
String sentence = new ...
0
votes
1answer
8 views
variable scoping
I got an annoying question why is it when I first attempted to compile this code with the variables imageSize and memorySize declared immediately under CameraPhone class compiler gave me a logic error ...
0
votes
0answers
9 views
Ordered LinkedList logic in Java, LinearNode head is being reassigned each time
I have a generic ordered Linked List class. For some reason, LinearNode head is being reassigned every single time I run add(). Any ideas? Why would head be changed each time I run this? I'm not even ...
0
votes
0answers
14 views
Import or Implement Reusable Statics?
Option #1:
public class WidgetStatics {
public static final String FIZZ = "fizz";
public static final String BUZZ = "buzz";
}
And then:
import com.me.myorg.myapp.WidgetStatics
public ...
0
votes
0answers
13 views
How to watch variable value in method in abstract class
The IDE is Eclipse, when I debug/Trace and I want to watch the variable in a method in abstract class, but it does not show anything.
Any ideas? Thanks a lot!
0
votes
0answers
9 views
simplifying texture and corner coordinates 'openGL
I draw a cube , covered with a dice texture (a 1024*1024 pixel PNG) the output is correct , with 72 cube corner coordinates and 48 texture coordinates, as long as I know it is possible to omit common ...
0
votes
4answers
29 views
Defining methods in super class for sub classes
How would one go about defining a method in a super class but leave the implementation to the sub classes?
0
votes
3answers
22 views
Java paint issue
OK, i've been searching and googling for ages and it's driving me MAD. (please bear in mind this started as code from the University).
Any help would be massively appreciated! Since I appear to have ...
2
votes
0answers
10 views
why a:commandLink's action attribute works but h:commandLink's does not?
I had a very simple task today that I needed help with. First let me explain my environment.
We are on a Java/Hibernate/SEAM/Facelets/JSF/RichFaces & A4J setup.. and I don't know to much about it.
...
0
votes
0answers
15 views
SHA1 encryption for Minecraft client
I'm writing a client for Minecraft in Java. I have a lot of things working already, but the one thing that has really stumped me is how Minecraft does its authentication. I found this page
...
0
votes
0answers
6 views
Undo actions done prior to netbeans restart
Is there any way to enable undo for actions done, prior to Netbeans restart, after the netbeans is restarted ?
Any plugin support for this would also do fine.
1
vote
2answers
46 views
Java: Calculations giving wrong answer, where is my mistake?
I can't seem to figure out why it's not printing correctly:
public class test3 {
public static void main(String[] args) {
double[] gens = {100, 200.1, 9.3, 10};
double d0 = 0;
double d1 ...
0
votes
0answers
15 views
library dependencies in maven. best practices
I'm writing testing library with my own junit runner. it extends BlockJUnit4ClassRunner which is available since 4.5 till... who knows. user of my library should be able to choose whatever junit ...
2
votes
1answer
24 views
Retrieving HashMap from TreeMap
I use following complex data structure.
departures = new TreeMap<String, Map<String, Set<MyObject>>>();
arrivals=new HashMap<String, Set<MyObject>>();
flights=new ...