I have been programming in Java for some months and want to start learning about app development though I'm not sure where to start. If any app developers can recommend resources that helped them I...
Type: Posts; User: keepStriving
I have been programming in Java for some months and want to start learning about app development though I'm not sure where to start. If any app developers can recommend resources that helped them I...
I'm trying to replicate the rol(rotate left) instruction in assembly though can only get as far as shifting the bits with '<<' or doing Long.rotateLeft(var, 5). Both of these method don't wrap around...
Is there any way in which I can get rid of the p so it does not print the hex string to the exponent?
Basically I want it to print 0x41efd17834000000 instead of 0x1.fd17834p31.
I am trying to convert the double 4270571936.0000000000d to a hex string using Double.toHexString() and the answer I'm getting is 0x1.fd17834p31, what does p stands for?
The answer I'm expecting...
It works, it's not the actual source code it's just shows the template I used. getField() refers to any getter method. Object refers to the Object type the list stores.
I can sort strings in a collection by uppercase and then lowercase though I was wondering if there is any way of doing it in reverse, sorting by lowercase then by uppercase.
Forgive the late response, just saw your post now, I did the following:
Collections.sort(myList,
new Comparator<Object>()
{
public int...
The objects hold fields, I want the arraylist to sort the objects based on a certain field.
I am trying to sort an ArrayList of objects with the comparator as I want to sort based on a certain value for each object. I understand I would need to override compareTo() in the objects class, is...
Thanks anyway, I'll continue to use JFrame.
It says Frame parent as the first parameter, JFrame is one type of Frame that would satisfy this condition I was wondering if there would be anything else.
There is no problem just wondering if there is an alternative, I want it to act as the parent for the FileDialog.
Are there any alternatives to JFrame that can be used as a parent Frame?
I have got tomcat to work on eclipse when creating a html page and get access to tomcat when I do localhost:8080 though I get error 404 when creating a simple servlet. I have copied two different...
I have some experience in HTML and now want to go about learning how to build web apps so I need to learn about JSP and servlets, I have an understanding of what they do though struggling to find...
I mean things like shadows, animation etc.
I'll check out the books, thanks.
I have created a couple of applications and they all have a 80's style static user interface, I want my interfaces to be more dynamic and interactive similar to modern day apps and websites. What can...
I am trying to send a mail message though get the following error after the "Transport.send(message)" command.
com.sun.mail.util.MailConnectException: Couldn't connect to host, port:...
Thanks guys really appreciate your help.
As a practice project I want to create a program that can give real time feedback of a certain stocks shares on my own GUI, would I need to connect to a website or something else and how could I go...
I am such an idiot!!!!!!!!!!!!!
In second code:
The new thread and run method is meant to allow multithreading which it does as I can do sysTrayCreator() and connectSocket() though I slow down sysTrayCreator() so exception can be...
Which is why I used multithreading. It seems to work or am I going wrong somewhere again?
Turn out shutdown hook does not work for forceful exits, though I managed to get it to work for graceful exits ad understand it now.
I have managed to do the task with sockets here is the code,...
Keep trying, the first steps are always the hardest.