| | |
Question about tables
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
I have an int table, consisting of 7 ints, and is wondering if there is any way of avoiding the same int to be entered twice. And if entering the same int twice, the user of the program would have to re-enter the int again.
this is what i've got so far, but it doesn't seem to work at all..
this is what i've got so far, but it doesn't seem to work at all..
Java Syntax (Toggle Plain Text)
if(tab1[i] == tab1[i]) System.out.println(tab1[i]+" is already used"); //reduses index i--; kb.nextLine();
![]() |
Similar Threads
- Retrieving data from TWO tables with conditions (ASP.NET)
- A question about tables.... (Python)
- Depth Travesal (MS SQL)
- need help with table design (Database Design)
- fetch specific records in dataset (ASP.NET)
- Problem (MS SQL)
- access report (Visual Basic 4 / 5 / 6)
- Basic SQL question! (MS SQL)
Other Threads in the Java Forum
- Previous Thread: Error on repairing program
- Next Thread: Reasigning variables
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api apple applet application apps arguments array arrays automation balls binary bluetooth card chat class classes clear client code component consumer database draw eclipse ee error event exception fractal free game gameprogramming gis givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javaprojects jni jpanel julia jvm key linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie nextline nls notdisplaying number oracle output print problem program programming project recursion recursive scanner screen security server set size sms socket sort spamblocker sql sqlite string sun swing terminal test threads time tree trolltech windows





