Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
22% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
2 Commented Posts
~15.0K People Reached
Favorite Forums

8 Posted Topics

Member Avatar for rotten69
Member Avatar for real thinkers

[CODE] public class Stringtest { public Stringtest() { } static String s2; public static void main(String args[]) { String input="My name is billa"; String buffer=new String(); String generated=new String(); boolean flag; for(int i=0;i<input.length();i++) { flag=true; for(int j=0;j<buffer.length();j++) { if(input.charAt(i)==buffer.charAt(j)) { flag=false; } } if(flag) generated=generated+input.charAt(i); buffer=buffer+input.charAt(i); } System.out.println(generated); } }[/CODE]

Member Avatar for Ezzaral
0
230
Member Avatar for Jessurider

Hi nidhish I have one suggestion, i think it is better to use TableModel for your Jtable when you need to change your table data dynamically. According to your code, you are reconstructing your table and adding into container again and again. It looks like giving more weightage for your …

Member Avatar for murali_quest
0
201
Member Avatar for charchar88

Always Priority of Threads are 5(default). so which will execute first and second we cant guess it. Try to use setPriority() or Use Thread.sleep to make delay. So that you can see similar outputs for several execution.

Member Avatar for charchar88
0
154
Member Avatar for vomhaus

//Here I have edited little in your code.. Instead of string i have used string array. [CODE]public String[] getAnswers() throws DAOException, SQLException{ //This still needs work String testName = "Test", formName = "Form"; String sql = "select item, itemkey from dbo.TestMaster " + "where TestName = ? and FormName = …

Member Avatar for murali_quest
0
107
Member Avatar for manjupargavi

Check out this example. import javax.swing.*; import java.awt.event.*; public class demo_combo{ JComboBox combo; JTextField txtBox; public static void main(String[] args){ demo_combo ar = new demo_combo(); } public demo_combo(){ JFrame frame = new JFrame("Add-Remove Item of a Combo Box"); String items[] = {"Java", "JSP", "PHP", "C", "C++"}; combo = new JComboBox(items); …

Member Avatar for JamesCherrill
0
2K
Member Avatar for murali_quest
Member Avatar for Jessurider

Hi nidhish According to 9th line you have used result.next() without any if statement. If your table is empty while executing first time result.next() will throw an error. Got it?

Member Avatar for Jessurider
0
2K

The End.