Click here to Skip to main content
15,920,383 members
Home / Discussions / Java
   

Java

 
AnswerJavaScript is one word, and it is not Java. Pin
Naruki23-Mar-09 21:13
Naruki23-Mar-09 21:13 
QuestionDrained Pin
jonig1913-Mar-09 20:31
jonig1913-Mar-09 20:31 
Answer[Message Deleted] Pin
fly90414-Mar-09 1:26
fly90414-Mar-09 1:26 
GeneralRe: Drained Pin
jonig1914-Mar-09 7:56
jonig1914-Mar-09 7:56 
GeneralRe: Drained Pin
fly90414-Mar-09 12:26
fly90414-Mar-09 12:26 
GeneralRe: Drained Pin
jonig1914-Mar-09 13:17
jonig1914-Mar-09 13:17 
QuestionCase Insensitive Array Search Pin
LordLothar13-Mar-09 19:14
LordLothar13-Mar-09 19:14 
AnswerRe: Case Insensitive Array Search Pin
fly90414-Mar-09 1:20
fly90414-Mar-09 1:20 
private int arraySearch(String[] haystack, String needle)
{
	//index -1 incase it is not found.
	int index = -1;
	
	//To stop the loop is the String is found.
	boolean run_i = true;
	
	//Go through the entire array.
	for (int i = 0; i < haystack.length && run_i; i++)
	{
		//If both lowercase match
		if(haystack[i].trim().toLowerCase().equals(needle.trim().toLowerCase()))
		{
			//Set the index of which the String was found.
			index = i;
			
			//String found so stop loop.
			run_i = false;
		}
	}
	
	//Return the index of the 
	return index;
}


ps. I wrote this on the fly so it may have errors but it is the general idea.

hmmm pie

QuestionBluetooth Door Lock (J2ME application). Pin
legand`13-Mar-09 7:12
legand`13-Mar-09 7:12 
AnswerRe: Bluetooth Door Lock (J2ME application). Pin
hookies fawaz5-Apr-09 15:43
hookies fawaz5-Apr-09 15:43 
QuestionPadding problem occure from Unix to window using Java Base32 Pin
Murugan k12-Mar-09 2:31
Murugan k12-Mar-09 2:31 
AnswerRe: Padding problem occure from Unix to window using Java Base32 Pin
Nagy Vilmos12-Mar-09 3:02
professionalNagy Vilmos12-Mar-09 3:02 
QuestionHow to access default port Pin
Nitharshan11-Mar-09 19:02
Nitharshan11-Mar-09 19:02 
QuestionRGB Cube Pin
trucha1365711-Mar-09 7:08
trucha1365711-Mar-09 7:08 
QuestionEnd process Pin
yesu prakash10-Mar-09 2:08
yesu prakash10-Mar-09 2:08 
AnswerRe: End process Pin
Nagy Vilmos10-Mar-09 2:44
professionalNagy Vilmos10-Mar-09 2:44 
Question[Message Deleted] Pin
Darshan Fulfagar9-Mar-09 23:42
Darshan Fulfagar9-Mar-09 23:42 
AnswerRe: JTree in a JTable Pin
Nagy Vilmos9-Mar-09 23:44
professionalNagy Vilmos9-Mar-09 23:44 
Question[Message Deleted] Pin
Darshan Fulfagar9-Mar-09 23:40
Darshan Fulfagar9-Mar-09 23:40 
AnswerRe: Using JTabbedPane Pin
Nagy Vilmos9-Mar-09 23:42
professionalNagy Vilmos9-Mar-09 23:42 
GeneralRe: Using JTabbedPane Pin
Darshan Fulfagar10-Mar-09 0:11
Darshan Fulfagar10-Mar-09 0:11 
RantRe: Using JTabbedPane Pin
Nagy Vilmos10-Mar-09 1:13
professionalNagy Vilmos10-Mar-09 1:13 
QuestionNeed Help Pin
faholi9-Mar-09 22:51
faholi9-Mar-09 22:51 
AnswerRe: Need Help Pin
Nagy Vilmos9-Mar-09 23:36
professionalNagy Vilmos9-Mar-09 23:36 
Questioncalendar and reservation Pin
donaldchristian9-Mar-09 0:11
donaldchristian9-Mar-09 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.