kambagiri's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 18 (0.02 per day)
- Joined:
- 23-September 10
- Profile Views:
- 2,184
- Last Active:
Feb 12 2013 10:27 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: programming with java RXTX library.. Accessing the data through usb
Posted 11 Feb 2013
farrell2k, on 11 February 2013 - 03:17 AM, said:So what is the error. Please post a stack trace.
the exception is java.lang.arrayindexoutofboundsexception:0 :: Actually it occurs as the array is declared with 0 size; as per my knowledge it should be declared as 0 since, we couldn't predict the portname so it should assign portname by default. What do you say? is there any flaw with that particular kind of declaration??? -
In Topic: java swing code execution
Posted 29 Jan 2013
GregBrannon, on 26 January 2013 - 11:44 AM, said:There could be many things going wrong in the actionPerformed() method, and we can't test them all. Write your own code, print statements, logs entries, etc., to test entry into and progress through the actionPerformed() method and the branches within.
If this is your first jdbc program, the problem(s) will probably be in connecting to the data base, getting info from it, etc., but you should be seeing error messages if that's the case, except . . .
Empty catch() blocks are worthless. Put something in there to indicate when errors have occurred.
can we set position for the labels in the above program??
I have tried with setLocation(); setBounds(new Rectangle(new Point(200, 200), lab1.getPreferedSize())); and setBounds command but couldn't get positioned according to it..
Is there any problem without it??
or Do i need any corrections???? -
In Topic: java swing code execution
Posted 27 Jan 2013
GregBrannon, on 26 January 2013 - 11:44 AM, said:There could be many things going wrong in the actionPerformed() method, and we can't test them all. Write your own code, print statements, logs entries, etc., to test entry into and progress through the actionPerformed() method and the branches within.
If this is your first jdbc program, the problem(s) will probably be in connecting to the data base, getting info from it, etc., but you should be seeing error messages if that's the case, except . . .
Empty catch() blocks are worthless. Put something in there to indicate when errors have occurred.
Thanks
i must be a little bit conscious, it's just a single spell which nearly wiped out
-
In Topic: how to read information from RFID reader into our java program
Posted 21 Jan 2013
macosxnerd101, on 12 January 2013 - 11:38 AM, said:The Java Communications API is probably your best starting point, unless a 3rd Party API already exists for this technology.
Actually, i'm working with java APIs regarding how to get/access the data from rfid reader connected using the usb but i couldn't find out the solution. What i require is i just want a usbjava snippet in accessing the data from the reader, wish you could help!!!... -
In Topic: Shortest Job First
Posted 9 Aug 2011
The codes which are mentioned may be somewhat typical to understand. I written a simple which can also be understood by newbies
#include<stdio.h> #include<conio.h> int main() { int cput[20],art[20],w[20],n,i,j=0,min,min1,temp,temp1; float avg,sum=0; printf("Enter number of processors:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("\n Enter values for %d processor:",i+1); scanf("%d ",&cput[i]); scanf("%d", &art[i]); } for(i=0;i<n;i++) { for(j=i+1;j<n;j++) { if(cput[i]>cput[j]) { temp=cput[i]; temp1=art[i]; cput[i]=cput[j]; art[i]=art[j]; cput[j]=temp; art[j]=temp1; } } } printf("The order of processors:"); for(i=0;i<n;i++) { printf("\n %d \t %d",cput[i],art[i]); } w[0]=0; for(i=1;i<n;i++) { w[i]=cput[i-1]+w[i-1]; sum+=w[i]; } avg=sum/n; printf("\n The average waiting time is :%f",avg); getch(); return 0; }
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Click here to e-mail me
Friends
|
|


Find Topics
Find Posts
View Reputation Given



|
Comments
kambagiri has no profile comments yet. Why not say hello?