Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: unchecked or unsafe operations while compiling the program...

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default unchecked or unsafe operations while compiling the program...

    String filename="C:\\Users\\Rajashekar\\Desktop\\fwfwd\\Software Failures1_Test.txt";//Input Files
        String data;
        public ArrayList<String> value=new ArrayList<String>();
    	public void read() throws IOException{
    		File f = new File(filename);
    		FileReader fr = new FileReader(f);
    		BufferedReader br  = new BufferedReader(fr);
    		String []s = new String[2];
    		while ((data=(br.readLine()))!=null) {
    		s=data.split(" /n");
    		System.out.println(s[0]+" "+s[1]);
    		value.add(s[0]);
    		value.add(s[1]);
    		}
    		//System.out.println(data);
    		br.close();
    Last edited by Rajashekar; June 30th, 2014 at 01:02 PM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: unchecked or unsafe operations while compiling the program...

    Please edit your post and wrap your code with code tags:
    [code=java]
    YOUR CODE GOES HERE
    [/code]
    to get highlighting and preserve formatting.

    Do you have a question?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] Compiling program to unix
    By dicdic in forum What's Wrong With My Code?
    Replies: 4
    Last Post: February 11th, 2014, 07:47 PM
  2. program not compiling
    By russ in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 26th, 2012, 12:39 AM
  3. unchecked or unsafe operations ERROR
    By yacek in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 22nd, 2011, 01:12 AM
  4. Unchecked or Unsafe Operations
    By saxophonemaster in forum Collections and Generics
    Replies: 2
    Last Post: April 12th, 2011, 04:40 AM
  5. unsafe operations note??
    By bookface in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 22nd, 2010, 09:58 AM