Results 1 to 20 of 20
  1. #1
    Lara is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default need help with array

    hey
    can somebody tell me how to print result from my array?
    This is my code and i don't know what's wrong...



    public void connection() throws ClassNotFoundException, SQLException
    {
    try
    {

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con= DriverManager.getConnection("jdbc:odbc:test");
    Statement s= con.createStatement();
    String query = "SELECT * from table";
    ResultSet rs = s.executeQuery(query);


    while (rs.next())
    {
    for (int i=0; i<0; i++)
    {
    question[i]= rs.getString("columnQustion");
    answer1[i]=rs.getString("column1");
    answer2[i]=rs.getString("column2");
    answer3[i]=rs.getString("column3");
    answer4[i]=rs.getString("column4");

    }

    }
    setQandA();
    rs.close();
    s.close();
    con.close();
    }
    catch (ClassNotFoundException e)
    {
    e.printStackTrace();
    }
    catch (SQLException e)
    {

    }
    }
    public void setQandA();
    {
    int i=0;
    label1.setText("question number:" + " "+ (i+1));
    labelQuestion.setText(question[i]);
    radioButton1.setText(answer1[i]);
    radioButton1.setText(answer2[i]);
    radioButton1.setText(answer3[i]);
    radioButton1.setText(answer4[i]);
    }


    thanks
    Last edited by Lara; 06-10-2010 at 08:59 AM.

  2. #2
    Michael Dunn is offline Member
    Join Date
    Jul 2008
    Posts
    62
    Rep Power
    0

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,618
    Rep Power
    25

    Default

    i don't know what's wrong
    What does it do that you don't like?
    Can you show its output and describe what's wrong with it and how you want it to look?

  4. #4
    Lara is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default

    i want to data from database put to arrays and than print it on the label and radio buttons.
    when i start my program i get a message:
    Exception in thread "main" java.lang.NullPointerException
    can somebody tell me what could be a problem or any other solution
    thanks

  5. #5
    dswastik is offline Senior Member
    Join Date
    Dec 2008
    Location
    Kolkata
    Posts
    282
    Rep Power
    6

    Default

    You get NullPointerException when you call a method on a reference which is not initialized or holding a null reference. For e.g.

    String s=null;
    s.length(); //will cause a nullpointerexception.

    So without seeing your code and where the exception is occurring its tough to provide you any solution.

    And kindly use code tags when you paste your code.
    Swastik

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  7. #7
    Lara is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default

    sorry that code is not readable

    here's my entire code:

    1 package mypack;
    2 import java.awt.*;
    3 import java.awt.event.*;
    4 import javax.swing.*;
    5 import java.io.*;
    6 import java.sql.*;
    7
    8 public class Question extends JDialog implements ActionListener
    9 {
    10
    11 JLabel label1 = new JLabel();
    12 JLabel labelQuestion = new JLabel();
    13 JButton btnNext = new JButton("Next");
    14 JButton btnPrevious = new JButton("Previous");
    15 JRadioButton radioButton1 = new JRadioButton();
    16 JRadioButton radioButton2 = new JRadioButton();
    17 JRadioButton radioButton3 = new JRadioButton();
    18 JRadioButton radioButton4 = new JRadioButton();
    19 ButtonGroup group = new ButtonGroup();
    20 String question[];
    21 String answer1[];
    22 String answer2[];
    23 String answer3[];
    24 String answer4[];
    25
    26 public Question()
    27 {
    28 setTitle("title");
    29 setVisible(true);
    30 setSize(550,400);
    31 addWindowListener(new WindowAdapter()
    32 {
    33 public void windowClosing(WindowEvent we)
    34 {
    35 System.exit(0);
    36 }
    37 }
    38
    39 setMyComp();
    40 try
    41 {
    42 connection();
    43 }
    44 catch (ClassNotFoundException e)
    45 {
    46 e.printStackTrace();
    47 }
    48 catch (SQLException e)
    49 {
    50 e.printStackTrace();
    51 }
    52 }
    53 public void setMyComp()
    54 {
    55 getContentPane().setLayout(null);
    56
    57 label1.setLocation(4,3);
    58 label1.setSize(476, 30);
    59
    60 labelQuestion.setLocation(25, 20);
    61 labelQuestion.setSize(600, 78);
    62
    63 group.add(radioButton1);
    64 group.add(radioButton2);
    65 group.add(radioButton3);
    66 group.add(radioButton4);
    67
    68 radioButton1.setLocation(25, 100);
    69 radioButton1.setSize(476, 26);
    70 radioButton1.setSelected(true);
    71
    72 radioButton2.setLocation(25,140);
    73 radioButton2.setSize(476, 26);
    74
    75 radioButton3.setLocation(25,180);
    76 radioButton3.setSize(476, 26);
    77
    78 radioButton4.setLocation(25,220);
    79 radioButton4.setSize(476, 26);
    80
    81 btnPrevious.setLocation(80,310);
    82 btnPrevious.setSize(130, 30);
    83 btnPrevious.setEnabled(false);
    84
    85 btnNext.setLocation(290,310);
    86 btnNext.setSize(130, 30);
    87
    88 getContentPane().add(radioButton1);
    89 getContentPane().add(radioButton2);
    90 getContentPane().add(radioButton3);
    91 getContentPane().add(radioButton4);
    92 getContentPane().add(btnPrevious);
    93 getContentPane().add(btnNext);
    94 getContentPane().add(label1);
    95 getContentPane().add(labelQuestion);
    96
    97 }
    98
    99 public void actionPerformed(ActionEvent e1)
    100 {
    101
    102 }
    103 public void connection() throws ClassNotFoundException, SQLException
    104 {
    105 try
    106 {
    107
    108 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    109 Connection con= DriverManager.getConnection("jdbc:odbc:test");
    110 Statement s= con.createStatement();
    111 String query = "SELECT * from table";
    112 ResultSet rs = s.executeQuery(query);
    113
    114
    115 while (rs.next())
    116 {
    117 for (int i=0; i<0; i++)
    118 {
    119 question[i]= rs.getString("columnQuestion");
    120 answer1[i]=rs.getString("column1");
    121 answer2[i]=rs.getString("column2");
    122 answer3[i]=rs.getString("column3");
    123 answer4[i]=rs.getString("column4");
    124 }
    125
    126 }
    127 setQandA();
    128 rs.close();
    129 s.close();
    130 con.close();
    131 }
    132 catch (ClassNotFoundException e)
    133 {
    134 e.printStackTrace();
    135 }
    136 catch (SQLException e)
    137 {
    138
    139 }
    140 }
    141 public void setQandA()
    142 {
    143 int i=0;
    144 label1.setText("question number:"+" "+(i+1));
    145 labelQuestion.setText(question[i]);
    146 radioButton1.setText(answer1[i]);
    147 radioButton2.setText(answer2[i]);
    148 radioButton3.setText(answer3[i]);
    149 radioButton4.setText(answer4[i]);
    150 }
    151
    152 public static void main(String []args)
    153 {
    154 Question q= new Question();
    155 q.setVisible(true);
    156 }
    157}

    and this is a error:
    Exception in thread "main" java.lang.NullPointerException
    at mypack.Question.labelQuestion (Question.java:145)
    at mypack.Question.connection(Question.java:127)
    at mypack.Question.<init>(Question.java:42)
    at mypack.Question.main(Question.java:154)

    i think something about array is wrong...but no idea what
    Last edited by Lara; 06-10-2010 at 11:41 AM.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Please use code tags next time when you posting again here in the forum. Unformated codes are really hard to read. If you don't know how to do it, check my signature.

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    How did you get this error? Because in action listener I cannot see that anything you've triggered.

  10. #10
    Lara is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default

    ActionListener does not make me a problem. Whan i comment lines from 143 to149 program running

  11. #11
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,680
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Lara View Post
    117 for (int i=0; i<0; i++)
    Ahem ...

    kind regards,

    Jos

  12. #12
    Michael Dunn is offline Member
    Join Date
    Jul 2008
    Posts
    62
    Rep Power
    0

    Default

    Originally Posted by Lara View Post
    117 for (int i=0; i<0; i++)
    Ahem ...

    kind regards,

    Jos
    already pointed out to the OP (in the cross-post)

    looks like 'lara' needs it in braille

  13. #13
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Michael Dunn View Post
    already pointed out to the OP (in the cross-post)

    looks like 'lara' needs it in braille
    I wonder why people really deals with many forums. And how they find enough time.

  14. #14
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    if was very curious about the code so i imported in eclipse and after correcting the for-loop with while (rs.next()) and creating a table named question i could run the gui with the first question and all 4 answers. i think the array is not appropriate to store all you question. if you want i can rewrite the code. tell me.

  15. #15
    Lara is offline Member
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    0

    Default

    already pointed out to the OP (in the cross-post)
    "I wonder why people really deals with many forums. And how they find enough time. "
    Don't understand why so many critics because i posted same massage on different sites? I can't wait some days for answer if it's urgent. Please ask before you criticize.

    if was very curious about the code so i imported in eclipse and after correcting the for-loop with while (rs.next()) and creating a table named question i could run the gui with the first question and all 4 answers. i think the array is not appropriate to store all you question. if you want i can rewrite the code. tell me.
    I changed while loop and now i can run gui :) but always return me last question from my database :(
    p.s. what is the best way to store question? (if array is not good solution)
    thanks

  16. #16
    Michael Dunn is offline Member
    Join Date
    Jul 2008
    Posts
    62
    Rep Power
    0

    Default

    > I can't wait some days for answer if it's urgent. Please ask before you criticize.

    always engage the brain before the mouth.

    posting on multiple sites annoys the majority of helpers because what often happens
    is they spend time testing/formulating an answer, then click on another site
    only to find that same problem answered hours earlier (= their time wasted).

    how do you think they're going to react when you next post a problem?

    I know what I do, completely ignore it.
    Often I do know the solution, and the post remains unanswered for days.
    I get to smile at that = payback.

  17. #17
    curmudgeon is offline Senior Member
    Join Date
    May 2010
    Posts
    436
    Rep Power
    5

    Default

    Quote Originally Posted by Michael Dunn View Post
    I know what I do, completely ignore it.
    Often I do know the solution, and the post remains unanswered for days.
    I get to smile at that = payback.
    ++
    Agree. If the original poster doesn't care if I waste my time answering something already answered, then I don't care to help them.

  18. #18
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Michael Dunn View Post
    > I can't wait some days for answer if it's urgent. Please ask before you criticize.

    always engage the brain before the mouth.

    posting on multiple sites annoys the majority of helpers because what often happens
    is they spend time testing/formulating an answer, then click on another site
    only to find that same problem answered hours earlier (= their time wasted).

    how do you think they're going to react when you next post a problem?

    I know what I do, completely ignore it.
    Often I do know the solution, and the post remains unanswered for days.
    I get to smile at that = payback.
    Totally agreed with you. As you questioned here, I don't want to answer to someone who has cross-posted in different locations. But unfortunately I cannot remember all of them, but if I found someone twice or more then defenetly there are in my ignore list.

  19. #19
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by Lara View Post
    p.s. what is the best way to store question? (if array is not good solution)

    i made the following changes to your code:
    1. for storing the question a create a new class called Questions, which can store the question, all possible answers, the number of the right answer and the number of the answer the user has given. the class has also some setters and getters, so you can easily retrieve your data.
    2. all questions are stored now in a ArrayList of type Questions called arrQ.
    3. because i had no access to mysql when i commented out the connection method and i hardcoded two questions for test purposes. you can easy change it back and add your questions to the ArrayList. if you need help, let me know. note: if you want to store the right answer in the ArrayList you should add this attribute to your table in mysql.
    4. the buttons have a actionListener now so that you can switch for and back in the two questions and the answers of the user will also be stored. i added a button "Finished" so that your answers are evaluated when you are finished with the questions. as you can see in the code the right answer for question 1 is 2 and for question 2 is 4.
    5. there are some more little changes. it would be great, if the number of possible answer could change.

    here is the code

    Java Code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.sql.*;
    import java.util.ArrayList;
    
    public class Questionnaire extends JDialog implements ActionListener {
    
    	JLabel label1 = new JLabel();
    	JLabel labelQuestion = new JLabel();
    	JButton btnNext = new JButton("Next");
    	JButton btnPrevious = new JButton("Previous");
    	JButton btnFinish = new JButton("Finish");
    	JRadioButton radioButton1 = new JRadioButton();
    	JRadioButton radioButton2 = new JRadioButton();
    	JRadioButton radioButton3 = new JRadioButton();
    	JRadioButton radioButton4 = new JRadioButton();
    	ButtonGroup group = new ButtonGroup();
    	String question;
    	String answer1;
    	String answer2;
    	String answer3;
    	String answer4;
    	ArrayList<Questions> arrQ = new ArrayList<Questions>();
    	int currentQuestionNr = 0;
    	Questions currentQuestion;
    
    	public Questionnaire(String title) {
    		setTitle(title);
    		setVisible(true);
    		setSize(550, 400);
    		addWindowListener(new WindowAdapter() {
    			public void windowClosing(WindowEvent we) {
    				System.exit(0);
    			}
    		});
    
    		setMyComp();
    		try {
    			connection();
    		} catch (ClassNotFoundException e) {
    			e.printStackTrace();
    		} catch (SQLException e) {
    			e.printStackTrace();
    		}
    	}
    
    	public void setMyComp() {
    		getContentPane().setLayout(null);
    
    		label1.setLocation(4, 3);
    		label1.setSize(476, 30);
    
    		labelQuestion.setLocation(25, 20);
    		labelQuestion.setSize(600, 78);
    
    		group.add(radioButton1);
    		group.add(radioButton2);
    		group.add(radioButton3);
    		group.add(radioButton4);
    
    		radioButton1.setLocation(25, 100);
    		radioButton1.setSize(476, 26);
    		radioButton1.setSelected(true);
    
    		radioButton2.setLocation(25, 140);
    		radioButton2.setSize(476, 26);
    
    		radioButton3.setLocation(25, 180);
    		radioButton3.setSize(476, 26);
    
    		radioButton4.setLocation(25, 220);
    		radioButton4.setSize(476, 26);
    
    		btnPrevious.setLocation(80, 310);
    		btnPrevious.setSize(130, 30);
    		btnPrevious.setEnabled(false);
    		btnPrevious.addActionListener(this);
    
    		btnNext.setLocation(240, 310);
    		btnNext.setSize(130, 30);
    		btnNext.addActionListener(this);
    
    		btnFinish.setLocation(400, 310);
    		btnFinish.setSize(130, 30);
    		btnPrevious.setEnabled(true);
    		btnFinish.addActionListener(this);
    
    		getContentPane().add(radioButton1);
    		getContentPane().add(radioButton2);
    		getContentPane().add(radioButton3);
    		getContentPane().add(radioButton4);
    		getContentPane().add(btnPrevious);
    		getContentPane().add(btnNext);
    		getContentPane().add(btnFinish);
    		getContentPane().add(label1);
    		getContentPane().add(labelQuestion);
    		this.repaint();
    
    		radioButton1.addActionListener(this);
    		radioButton2.addActionListener(this);
    		radioButton3.addActionListener(this);
    		radioButton4.addActionListener(this);
    
    	}
    
    	// the actions of your button are here
    	public void actionPerformed(ActionEvent e1) {
    		String cmd = e1.getActionCommand();
    
    		if (cmd.equals("Next")) {
    			if ((currentQuestionNr + 1) < arrQ.size()) {
    				currentQuestionNr++;
    				btnPrevious.setEnabled(true);
    				setQandA(currentQuestionNr);
    			}
    		} else if (cmd.equals("Previous")) {
    			if ((currentQuestionNr - 1) >= 0) {
    				currentQuestionNr--;
    				btnNext.setEnabled(true);
    				setQandA(currentQuestionNr);
    			}
    		} else if (cmd.equals("Finish")) {
    			printScore();
    		}
    
    		// set the answer the user has already given
    		if (currentQuestion.getUserAnswer() == 1) {
    			radioButton1.setSelected(true);
    		} else if (currentQuestion.getUserAnswer() == 2) {
    			radioButton2.setSelected(true);
    		}
    		if (currentQuestion.getUserAnswer() == 3) {
    			radioButton3.setSelected(true);
    		}
    		if (currentQuestion.getUserAnswer() == 4) {
    			radioButton4.setSelected(true);
    		} else if (currentQuestion.getUserAnswer() == 0)
    			radioButton1.setSelected(true);
    
    		if (e1.getSource() == radioButton1) {
    			currentQuestion.setUserAnswer(1);
    		} else if (e1.getSource() == radioButton2) {
    			currentQuestion.setUserAnswer(2);
    			;
    		} else if (e1.getSource() == radioButton3) {
    			currentQuestion.setUserAnswer(3);
    			;
    		} else if (e1.getSource() == radioButton4) {
    			currentQuestion.setUserAnswer(4);
    			;
    		}
    	}
    
    	public void connection() throws ClassNotFoundException, SQLException {
    
    		// Connection con = null;
    		// try {
    		//
    		// try {
    		// Class.forName("com.mysql.jdbc.Driver");
    		// } catch (ClassNotFoundException e) {
    		// System.out.println("Couldn't find the driver!");
    		// e.printStackTrace();
    		// System.exit(1);
    		// }
    		//
    		// String userID = "userid";
    		// String passwd = "password";
    		//
    		// try {
    		// con = DriverManager.getConnection(
    		// "jdbc:mysql://localhost:3306/test", userID, passwd);
    		// } catch (Throwable e) {
    		// System.out.println("Couldn't get connection to localhost!");
    		// e.printStackTrace();
    		// System.exit(1);
    		// }
    		//
    		// String queryString =
    		// "SELECT columnquestion, column1, column2, column3, column4 from question";
    		// Statement queryStmt = null;
    		// ResultSet rs = null;
    		//
    		// try {
    		// queryStmt = con.createStatement();
    		// } catch (SQLException e) {
    		// System.out.println("Could not create statement!");
    		// e.printStackTrace();
    		// System.exit(1);
    		// }
    		//
    		// try {
    		// rs = queryStmt.executeQuery(queryString);
    		// System.out.println("execute");
    		// int i = 0;
    		// while (rs.next()) {
    		// System.out.println("while loop " + i);
    		// System.out.println(rs.getString("columnquestion"));
    		// question = rs.getString(1);
    		// // System.out.println(question);
    		// answer1 = rs.getString(2);
    		// answer2 = rs.getString(3);
    		// answer3 = rs.getString(4);
    		// answer4 = rs.getString(5);
    		// // i++;
    		// }
    		// setQandA();
    		// rs.close();
    		// con.close();
    		// } catch (Exception e) {
    		// e.printStackTrace();
    		// }
    		// } finally {
    		// con.close();
    		// }
    
    		// build the two Questions
    		Questions q1 = new Questions("This is question 1",
    				"This is answer 1 of question 1",
    				"This is answer 2 of question 1",
    				"This is answer 3 of question 1",
    				"This is answer 4 of question 1", 2);
    
    		arrQ.add(q1);
    
    		Questions q2 = new Questions("This is question 2",
    				"This is answer 1 of question 2",
    				"This is answer 2 of question 2",
    				"This is answer 3 of question 2",
    				"This is answer 4 of question 2", 4);
    
    		arrQ.add(q2);
    
    		// start with the first question
    		setQandA(0);
    	}
    
    	public void setQandA(int i) {
    		label1.setText("question number:" + " " + (i + 1));
    		// get the element with the question and answers
    		currentQuestion = arrQ.get(i);
    		// show the question and the answers
    		labelQuestion.setText(currentQuestion.getQuestion());
    		radioButton1.setText(currentQuestion.getAnswer(1));
    		radioButton2.setText(currentQuestion.getAnswer(2));
    		radioButton3.setText(currentQuestion.getAnswer(3));
    		radioButton4.setText(currentQuestion.getAnswer(4));
    	}
    
    	public void printScore() {
    		int score = 0;
    		for (int i = 0; i < arrQ.size(); i++) {
    			System.out.println("Question "
    					+ (i + 1)
    					+ ": right answer is "
    					+ arrQ.get(i).getRightAnswer()
    					+ ", your answer was "
    					+ arrQ.get(i).getUserAnswer()
    					+ " which is "
    					+ (arrQ.get(i).getRightAnswer() == arrQ.get(i)
    							.getUserAnswer() ? "true" : "false"));
    
    			if (arrQ.get(i).getRightAnswer() == arrQ.get(i).getUserAnswer()) {
    				score++;
    			}
    		}
    		System.out.println("\nYour Score is " + score + " of " + arrQ.size()
    				+ " questions");
    		System.exit(0);
    	}
    
    	public static void main(String[] args) {
    		Questionnaire q = new Questionnaire("Test Questions");
    		q.setVisible(true);
    	}
    }
    
    class Questions {
    	private String question;
    	private String answer1;
    	private String answer2;
    	private String answer3;
    	private String answer4;
    	private int userAnswer;
    	private int rightAnswer;
    
    	// constructor of QuestionData
    	public Questions(String q, String a1, String a2, String a3, String a4, int r) {
    		question = q;
    		answer1 = a1;
    		answer2 = a2;
    		answer3 = a3;
    		answer4 = a4;
    		// set the right answer
    		rightAnswer = r;
    		// initialize the answer of the user with o
    		userAnswer = 0;
    	}
    
    	public String getQuestion() {
    		return question;
    	}
    
    	public String getAnswer(int i) {
    		switch (i) {
    		case 1:
    			return answer1;
    		case 2:
    			return answer2;
    		case 3:
    			return answer3;
    		case 4:
    			return answer4;
    		default:
    			return "unknown answer";
    		}
    	}
    
    	public int getRightAnswer() {
    		return rightAnswer;
    	}
    
    	public int getUserAnswer() {
    		return userAnswer;
    	}
    
    	public void setUserAnswer(int a) {
    		userAnswer = a;
    	}
    }
    execute my code 1:1 to see what happens and then make your changes. have fun.
    Last edited by j2me64; 06-11-2010 at 02:08 PM.

  20. #20
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by Eranga View Post
    I don't want to answer to someone who has cross-posted in different locations.

    but acting like that you cause a posting deadlock :)

Similar Threads

  1. convert byte array into char array
    By kgkamaraj in forum New To Java
    Replies: 4
    Last Post: 09-13-2011, 12:32 PM
  2. create a 2d char array from a 1D string array
    By jschmall12 in forum New To Java
    Replies: 1
    Last Post: 04-27-2010, 10:01 PM
  3. Convert Char Array to String Array
    By Mayur in forum New To Java
    Replies: 8
    Last Post: 10-12-2009, 12:41 PM
  4. Array length and printing out uninitialized array.
    By nicolek808 in forum New To Java
    Replies: 4
    Last Post: 09-10-2009, 10:12 AM
  5. Replies: 1
    Last Post: 03-31-2009, 07:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •