Click here to Skip to main content
15,893,368 members
Everything / Programming Languages / Java / Java SE 6

Java SE 6

JavaSE6

Great Reads

by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
by Corinna John
Fun with code and yarn
by Fadi Hania
This is a J2ME beginner article that describes how to add different J2ME components to your application especially StringItems and Commands.
by Jitendra_Jain04
IBM WebSphere Application Server V8.5 Liberty profile is a flexible and dynamic server profile of WAS which enables the WAS server to deploy only required custom features instead of deploying a big set of available JEE components.

Latest Articles

by Vladimir Kolmanovitch
The article allows extracting java.lang.reflect.Method using anonymous class or lambda
by Corinna John
Fun with code and yarn
by Tung.Nguyen.2k
How to implement B-Tree's searching, insertion and deletion in Java
by Paulo Uechi
Uechi APM Web is an APM (Application Performance Management) Open Source Server Performance Monitor written and developed in Java and C # for all Linux and Windows platforms. The Uechi.APM.Web offers a complete resource for unlimited monitoring servers in real time. Have full control of the CPU cons

All Articles

Sort by Updated

Java SE 6 

7 Sep 2010 by #realJSOP
Did you even partially consider using google? I tried it with the search phrase "menu with jsp", and got 21 MILLION results back.
18 Apr 2011 by #realJSOP
The best I can do is refer you to this google search phraseandorid speech recognition[^]
18 Apr 2011 by 3bou Habeeb
Hi,I want to know how I can recognize a person by his voice in order to log this person in to phone on androiod mobile?Can any one help me to find out how to match audio/voice on mobile or using a framework om mobile plz????
9 May 2012 by A-s-h-l-e-y
I have been working in JAVA because i wanted to go cross platform. For what i am doing it has been "FASTER" than C# which shocked me. I think the simplicity of the java controls and needing to add everything including a panel to most controls keeps it very light (Kill,Kill,Kill JAVA's window...
13 May 2012 by A-s-h-l-e-y
I created a download program that loads fine. When i add a download a control adds to a panel in a scroll area. The control doesn't appear until i re-size the control. what do i do to make them appear automatically. i add them by dwld.cnt d = new dwld.cnt(url,savepath);jPanel3.add(d);
23 Apr 2010 by Abhinav S
parveenkumar00...
5 Feb 2013 by Abhinav S
Some links that came up when I did a search -http://answers.yahoo.com/question/index?qid=20090324052343AABES8X[^]http://www.sitepoint.com/forums/showthread.php?500497-Displaying-Images-from-the-Database-using-Java-and-MySQL[^]http://www.easywayserver.com/blog/java-upload-image-in-database/[^]
25 Oct 2010 by achintya bhale
why java does not support default argument constructors as in c++?
28 Jun 2010 by Aescleal
Two quick bits of advice: - Decide what the rules of the game are going to be - Decide how you want to represnt the state of the gameOnce you've worked these two out all you've got to do is implement it!The second one can change during development - you can start of with text...
25 Sep 2015 by Afzaal Ahmad Zeeshan
No, if that is your homework you need to do it yourself. We won't provide any code unless you show us what you did and where did it get your stuck. Here is the algorithm, https://en.wikipedia.org/wiki/Eight_queens_puzzle[^] (See solutions) and you may want to have a look at a few PDFs provided...
15 Feb 2010 by AhsanS
working in Compact Framerwork or windows based application? if compact framework then microsoft has provided api for it. If you are doing it in windows based application then you need to connect your phone through serial port and do some serial reading.
1 Aug 2012 by ajaad
when ever i open a project in my NetBeans 7 ide it is automatically changing the build-impl files.beacause of that i am loosing some of my code.any idea?
16 Jan 2010 by Ajit singh chauhan
Hello Everybody Can anybody help me to Understand BIOMETRIC FINGERPRINTS SCANNING METHODS AND WORKING in java and mysql.thanks in advance...
18 Jan 2010 by Ajit singh chauhan
Hithis is my final project for my degree.my supervisor allowed me this and suggested me to go for it ....i have bit idea.as he told me its work like image comparing .but i have little bit clue.......looking for broad knowledge...please help me to understand the methods and...
18 Jan 2010 by Ajit singh chauhan
hiwell i got HMM algorithems for this project and the full java library which support HMM methods.but the basic need are which is the simplest algorithem to use......i ll try my best........
3 Apr 2009 by Akshay Bapat
Did it for the sake of a mini-project... Watch out for my real project...
28 Mar 2022 by Alberto Corena
Write a program that prompts the user for their age and determines if they are a teenager. Someone is a teenager if their age is greater than or equal to 13 and less than or equal to 19. Your program should be able to produce the following...
5 Dec 2008 by Alina Simion
A distributed database management system, having a main server-LookupServer, several DatabaseServers and Clients, using java.nio for communicating.
2 Feb 2010 by alololo
i am developing a streaming application in java and i want to transfer live streams of video to a mobile phone .mobile phone should have a streaming video player that should accept the streams of video and play them.can anyone help me with this project?
26 Sep 2013 by Am Gayathri
I want javascript to display one image while placing mouse on it.I have one image in my page, While placing mouse on it ,it should display another image with a good size.how to do this?
25 Aug 2012 by AmitGajjar
Hi,This is my personal opinion,If you do not have financial issues at your home then go for the higher study. don't stay at home and read books. In future if you are going for an interview in any of the company you need a valid reason why you have not done any job/study in that empty...
21 Jun 2016 by AmosShi
Watch the Java class file visually & interactively for the meaning of every byte
7 Feb 2014 by anamicaa
Consider in a Document if a String " Hello" is Encoded and stored as "XYZAB"I want to search the text on document for a word "Hello" and Replace the word with "HelloWorld"The Program will encrypt the word "Hello" and Search the file then return the encrypted code as "XYZAB"...
7 Feb 2014 by anamicaa
Quote:/* * To change this template, choose Tools | Templates * and open the template in the editor. */package javaapplication7;import java.io.File;import java.util.Scanner;/** * * @author Ragunath Gunasekaran */public class JavaApplication7 { /** * @param...
15 Nov 2015 by anaQata
//I am making a program where a user is supposed to input a sentence followed by a word. the program is then supposed to return whether the word is present or not followed by the position of the word My code is giving false values. kindly help me spot the bugimport java.io.*;import...
21 Jan 2023 by Andre Oosthuizen
In JavaScript, you can use a for loop to target an element from an array. Here is an example: let arr = [1, 2, 3, 4, 5]; for (let i = 0; i
19 Nov 2014 by Andres Camilo David Lopera
hello to everybody, please somebody can tell me what is wrong with this, i need a program that return the bigger and the smaller number of a array Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4import java.util.*;public class MNyMY{ public static...
15 Oct 2015 by Andy Feng
Create a simple Http Server using Java SDK and process GET/POST requests
17 Jul 2016 by Andy Point
Android Download Manager Tutorial: How to download files using Download Manager from the Internet
18 Jul 2016 by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
17 Jul 2016 by Andy Point
Android Flash Light Application Tutorial Using Camera2 API
28 Aug 2016 by Andy Point
Today Almost all web and mobile apps come with Google and Facebook Login, This is a really useful feature for both the app developer and the user, since almost everybody tend to have a google/gmail and facebook account and moreover while logging in with google you don’t need to remember your UserId
4 Oct 2011 by anktrive
Hi, I am new to JNI and I have been trying to write a simple program to call Java code from C++. I am facing problem in creating the JavaVM from C and am getting the Linker error. I have tried changing the GNU library files in dev C++ (I am using Dev c++ compiler) but no luck so far....
28 Jan 2010 by Anton Grigoryev
Command-line UI auto-generation to easily make code runnable.
3 Jul 2013 by Anushmita Paul
How to activate the options in a dialog box if a usb device is inserted into the system and gets deactivated if ub device is removed? The actions are very similar to the connect/disconnect options of a dalog box of a usb modem. I need the java code for this. please help.
14 Nov 2022 by Apoorv 2021
I have a state object with the name firstDig which is as follows:- const [firstDig, setfirstDig] = useState({ firstDigit: "", // first digit to which secondDigit is added/subs/... operator: "", // middle operator secondDigit: "", ...
1 Apr 2015 by Arkadeep De
You can follow this processusing (SqlCommand command = new SqlCommand("Select student.sname,admission.sroll,admission.scourse,admission.semester from admission,student where admission.asid=@Variable and admission.asid=student.sid", connection)){ command.Parameters.Add(new...
12 Apr 2012 by Armin ud
I want to simulate my thesis work. In which I have to simulate an adhoc network senario. for which i have to make a hierarchical key tree. please help
29 Jul 2021 by Arslan Anjum 2021
Only document.getElementbyID is working. no other JS DOM selector is working What I have tried: HTML ...
29 Jul 2021 by Arslan Anjum 2021
How can I get only date and time separately using tolocalestring with date in javaScript. What I have tried: function update_time_zone_2() { let timezone = time_zones_2.options[time_zones_2.selectedIndex].value; let date_and_time =...
1 Mar 2010 by Arun Reginald Zaheeruddin
A step-by-step guide taking a beginners' approach at effectively creating UI components in Java. This tutorial takes you through the initialization to the completion of an aesthetically pleasing UI component in Java.
6 Nov 2010 by AshishSood
try thisset JAVA_HOME=c/prog_file/java(path till bin to b specified here after "=")set classpath=.;%JAVA_HOME%/Libset path=%JAVA_HOME%/bin;%path%start
11 Jul 2018 by Ashokyede
Hello All, Zoom in and zoom out doesn't work for real time D3 line chart. It is not able to maintain zoomed in state. I created a real time d3 line chart as code provided in js fiddle http://jsfiddle.net/peDzT/ 1403 / . Chart successfully getting updated after every second. What I want is - ...
2 Dec 2009 by AspDotNetDev
Well, the URL has a semicolon where it should have a colon. That could be a problem.http;//Should be.http://Also, the web services I work with typically have an extension in the URL, but that could just be because I work with Microsoft technologies. For example:NWSSService?wsdlWould...
28 Feb 2010 by AspDotNetDev
SHREEKANTH P wrote:is this a good projectYep.
11 Oct 2010 by b4rc0ll0
A useful launcher for JAR executable files, with Splash Image function
8 Nov 2010 by b4rc0ll0
Create a smart Java component used as accordion menu. Explains how to create visual transition effects, and simple icons management. Also shows how to create a hierarchy of components with an easy cascade management.
24 May 2015 by BacchusBeale
You need multiple threads, one for each server socket port. Switching won't work since client can only connect if the socket/port is open and listening.
20 Dec 2011 by Balaji_Reddy
To search specific record from a table write query something like thisselect * from tablename where column_name = 'column value'For instance, to searching a user specific record based on user id. the query goes like thisselect * from usertable where userid = '12'
11 Jul 2011 by BALBINDER4u
how to detach database from dervy databse in netBeans 6.0.1 in java
18 Mar 2014 by basker A
how to implement multiple languages and multiple themes in spring mvc Any Example or References
18 Mar 2014 by basker A
how to implement multiple languages how to implement multiple themesAny Example or Referencesin spring model view controllerwhat ways to create packages and libraries to implement tamil and english languages[Edit]Repost of this[^][/Edit}
6 Nov 2011 by Be Yourself
I have created a SOAPEnvelop and I want to invoke a webservice action element by passing this soap envelop as input.Again I want to receive the response as a SOAPEnvelop which I can decode to get the output.Whether there is some performance decrement doing this?I am new to web...
26 Jun 2010 by bensalah
hi every one,i dont find simple drawing java app with (cut,copy,past,undo,redo)featurescan someone give me an exemple of source codethank you very much
24 Apr 2013 by Bernhard Hiller
properties.setProperty("mail.s...
18 Nov 2010 by Bikash Shaw
Don't deploy your application in Jetty, deploy Jetty in your application
30 Mar 2018 by bizzard4
ArrayList> holder = new ArrayList>(10); holder.get(1).add(10);
18 Aug 2011 by BlackJack99
well, first of all, i hope you are not expecting anyone here to do it for you, but what you have to do is basically something like this:public class Quiz { /** * @param args */ public static void main(String[] args) { string readString =...
9 May 2022 by br444ndy
I´m trying to looping through a Json... to get a new var = an array made up of months values [enero,febrero,marzo,etc] but I CANT DO IT, because console keeps telling me : Uncaught ReferenceError: data is not defined. Json: "mes": "Enero",...
23 Aug 2011 by Brian Robertson
class Node{ int num; Node next; Node(int n) { num=n; next = null; } } //end node class Q88 { public static void main (String[] args) { Node head1 = toBinary(4); //print(head1); Node head2 =...
26 Aug 2013 by Buddhi Chaturanga
Please I need brief comparison of above mentioned 3D teachnologies.What is the most suitable technology for general 3D applications?Concerning O/S:Windows dependent 3D applications developed using DirectX.Linux dependent 3D applications developed using OpenGL.Some 3D applications...
28 Jun 2010 by Cedric Moonen
You'll never get any satisfactory answers because your question is so vague that nobody will be able to reply.You need to cut your problem into pieces and ask specific questions. What have you already done ? It seems nothing because you didn't even choose a language.First thing to do is...
12 Jun 2011 by chinnasri
I am using java6 and eclipse.I have one problem, my eclipse closes every hour w/o clicking to exit and gives the following information: java was started but return exist code =128.What is this problem?How can I resolve this?I already set path and java_home in environmental...
19 Aug 2011 by Chiranthaka Sampath
At the below I am using two methods to have as the results of If Else statement. But it gives me several errors that I cannot correct. Please solve my problem? My Java Version is Java SE 6.0.Source Code01 02 public class If_Else{0304 public static void main (String[]...
29 Jul 2021 by Chris Copeland
You need to start reading the documentation for the functions that you're calling. If you don't understand what the return values of these methods are then you'll constantly need to ask for support. Document.querySelectorAll() - Web APIs |...
29 Jul 2021 by Chris Copeland
There are two functions which do exactly what you're looking for. Date.prototype.toLocaleDateString() - JavaScript | MDN[^] Date.prototype.toLocaleTimeString() - JavaScript | MDN[^]
14 Mar 2009 by Chris Grimes
Shows how to create C++ property accessors that support C#-like syntax
16 Jan 2010 by Christian Graus
Is this for paid work, or homework ? If the former, let the client know you are a fraud. If the latter, assume your professors know how to use google, even if you do not. Your question indicates you have a project that you have no clue how to do. Fingerprint scanning is easy. Comparing...
18 Jan 2010 by Christian Graus
Please edit your post to add detail, don't post a fake 'answer'. I can't see your post now and I'm trying to reply to it.If you don't know how to do this, then you have a lot of work ahead of you. No way is any forum reply going to give you much info. Your teacher said yes, that doesn't...
23 Jul 2010 by Christian Graus
There is no way to maintain session between asp and ASP.NET, I doubt very much that it's possible for the session to exist between a java page and an aspx. How can it ? The session is stored ON THE SERVER, in the web host, and you're using two different web hosts, and two different frameworks. ...
9 May 2012 by cloudagent
"Head First Java" By Sierra And Bates.Good book to read on Java..Take a look..
4 Aug 2010 by Coderguy194
I want to make a facebook messanger as my term project.i need a server that will keep connections with the facebook through its API.how can i create it?using HTML embedded with JAVAscript?or should i need to use php?infact i dont know PHP.....please give a perfect...
15 Feb 2017 by Corinna John
Fun with code and yarn
2 Jan 2012 by CPallini
Yep, it has. See, for instance: "Static Variables, Static Methods and Static Constructor"[^].
2 May 2012 by CPallini
Use the BigInteger[^] class.For instance: // implementation of 'long L1 = ((long)Math.pow(123,17)) % 3233;' BigInteger b = new BigInteger("123"); BigInteger e = new BigInteger("17"); BigInteger m = new BigInteger("3233"); BigInteger r; r = b.modPow(e, m);
19 Nov 2014 by CPallini
You should put the mix/max tests inside the for loop:for(i=0;ix) { x=suma[i]; } if (suma[i]
15 Dec 2014 by CPallini
There are tons of available tutorials with code samples on the web, just Google for[^].
13 Oct 2015 by CPallini
As others already pointed out, the sentenceQuote:using Public key for communication so it is vulnerable is just wrong.Have a look at this Wikipedia page "Public-key cryptography"[^].
28 Mar 2022 by CPallini
Have a look at Java If ... Else[^].
24 Dec 2022 by CPallini
From 'The Documentation': FileNotFoundException (Java Platform SE 6)[^] This exception will be thrown [..] when a file with the specified pathname does not exist. It will also be thrown [...] if the file does exist but for some reason is...
4 Jun 2009 by daniel_at_work
Stratagies for managing application properties in Java
17 Feb 2012 by dare2dash
any site / ebook which could help to revise and learn some imp interview questions of core java/servlet/jsp/mysql
9 Apr 2022 by Dave Kreskowiak
There is no "conversion" to jQuery. It's not a language. jQuery is a library of modules, written in javascript, designed to make writing common functionality in javascript simpler, smaller, and more supportable. Is there something in jQuery that...
13 Mar 2023 by Dave Kreskowiak
Think about your query. What does ".is(2)" mean? Is it the month number? The day of the month? How about the yes? Maybe the hour, minutes, or seconds? How is your code telling the database that the 2 is a month? Hint: It's not.
21 Mar 2023 by Dave Kreskowiak
It takes forever because you're looking for a couple of strings, "Disabled" and "Opted Out", probably without any indexing on the field. This is probably the worst way to get the status in terms of performance. If you were looking for integer...
30 Mar 2010 by DaveAuld
Looking at some of the google results returned, suggest this is possible by hacking the .inf file manually to add the second device. The results also suggest that you should use 2 adapters from different manufacturers.I think you are going to need to investigate this yourself, and visit some...
2 May 2010 by DaveAuld
Corinna John has created a who series of articles relating to steganography, suggest you go read these;http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=475133[^]
22 Dec 2011 by DeepthiTanguturi
How to open a link in new tab.Plz send some sample code.
27 Sep 2010 by Deven Parab
Hello Everyone Hi this is Deven Parab, I've been working in an IT company here and have done Software Engineering..being fresher I am very very new to some of the concepts, btw the place where I work is my first break...and I've been allotted with a job of developing a DTD...
28 Jan 2011 by dharmil007
Hello,I have this small programm written in AWT in Java.But it's not working properly.Please. can anyone help me out?It's not finding out the 1st no. as greatest, evrything else is fine.//WAP TO FIND GREATEST & SMALLEST OF NOS.//© DHARMiLimport java.awt.*;import...
29 Jan 2011 by dharmil007
hey one more question.i M trying to make work the smallest button also, but when i click on any button SMALLEST or GREATEST iT Returns on the result of the SMALLEST.PlS. help//WAP TO FIND GREATEST & SMALLEST OF NOS.//© DHARMiLimport java.awt.*;import java.awt.event.*;import...
26 Sep 2013 by Dholakiya Ankit
In this link use image instead of spanhttp://stackoverflow.com/questions/18783225/display-image-on-mouseover[^]Another one which give you exact ideahttp://stackoverflow.com/questions/17444912/jquery-show-hide-on-mouse-over-image[^]If you want to use div try below one add css on...
13 May 2012 by Diler Patel
Try To Repaint ur jPanel jPanel2.repaint();
10 Aug 2021 by Dimiter2011
dnow = Date().toLocaleString() - will give you all you want. Just break on space dnow = dnow.split(" ", 9); Result: (9)�["Tue", "Aug", "10", "2021", "14:16:01", "GMT-0500", "(Central", "Daylight", "Time)"] dnow[4]; will give you current time...
28 Oct 2011 by dizzarg
Dear guru of programming help please setting and sample programs with links JPA MySQL Tomcat (JBoss). I would be grateful for the help!For those interested I can add a question vebservisya with instructions bonds.Please help me, urgently need this service!
2 Sep 2010 by dmihailescu
What is the start-up and system performance overhead for .Net, Mono, Java versus C++ and Forms, WPF, Swing versus MFC
28 Apr 2013 by dollydalz
HI, I HAVE COMPLETED MY BTECH AND GOT PLACED TOO. Now, im planning to do Oracle Certified Professional, Java SE 6 Programmer Certification. so please tell me how to prepare for it nd so how much time it will take as i know the basics. where can i get the voucher.
25 Oct 2010 by Dr.Walt Fair, PE
So that you can have a reason to use C++?