ok im COMPLETELY new to java. but im just trying to do a psuedo-simple program (lol for me anyways)
neways here's my code
Code:
//Java Program for CS-216
//Program 5
import java.io.*;
import java.util.*;
class test
{

	public static void main(String[] args)
	{

		String ID, LN, FN, MAJOR, YEAR;
		String COURSE, SECTION, ENROLLED, ROOM, COURSEID;
		String LINE;
		String[] array = new String[5];
		String test = "111222333";
		String option;
		try
		{
			BufferedReader in = new BufferedReader(new FileReader("student.data"));


			while ((LINE = in.readLine()) != null)
			{
				array=LINE.split("/s");
				if (array[0] == test)
				{
					System.out.println("string exists GJ buddy!");
				}
			}

		}
		catch (IOException e)
		{
			System.out.println(e);
		}
		
	}
}
I know i know, not very impressive but hey its my first time.

anyways basically Im just using it to test right now.

it's reading a file that looks like this
111111111 Adams Sally CS FR
111222333 Samuels Ann EE SO
333444555 Charels Don CS SO
888777666 Daniels Tom UN JU
555666777 Martin Al CE SE
555444333 Adams Sally EE FR
777888999 Nelson Mary CS SO
999888777 Dinh Tran MA JU
000111222 Galvez Mara UN SE
777999888 Martin Dan CS FR
123456789 Adams George CS SO
888888888 Smith John CS JU

basically i want it to read in a line
like this: 111111111 Adams Sally CS FR
then split it into "ARRAY" ^^ like I have up top
then check the FIRST thing
so like the 9 digit "id" number

I put a test number "111222333"
but when i go to check if it exists I get nothing.

any help. i know it's something simple.

thx all. and keep in mind this is my first time with java lol?

is my split regexpression identifier wrong maybe?
any help though would be appreciated. THX