Search:

Type: Posts; User: kindk12

Page 1 of 2 1 2

Search: Search took 0.20 seconds.

  1. Re: Upadating Jtable while entering the data

    Wow thanks MAN
    I didn't realized it.
    Could you explain the first part.
  2. Upadating Jtable while entering the data

    I have this program here which has a table and an add button. By default there are already two data. I want to implement it in such a way that when I add new item by clicking the add button, I want...
  3. Thread: Asterisks

    by kindk12
    Replies
    15
    Views
    1,014

    Re: Asterisks

    [QUOTE=whome;71158]This is what I have so far...... not sure how to print out the asterisks from this point
    {
    int store1;
    int store2;
    int store3;
    int store4;
    int...
  4. Thread: return

    by kindk12
    Replies
    6
    Views
    370

    [SOLVED] Re: return

    class b
    {
    public static void main (String[] args)
    {
    b class1 = new b();
    b.Hours class2 = new b.Hours();

    System.out.println("HOURS IN A DAY: "+ class2.calculateHoursInDays(2));
    }
  5. Re: Finding the count of a letter in a String?

    lets say you have a string name NAME and you wanted to count numbers of 'a' in it.
    You should try

    int count = 0; //to count the numbers of appearance of letter

    for(int i = 0; i <...
  6. Replies
    3
    Views
    794

    [SOLVED] Re: Need Help Completing a Loan Table

    looks great. Good work
  7. Thread: return

    by kindk12
    Replies
    6
    Views
    370

    [SOLVED] Re: return

    when the error says could not load main class aa7, it probably should be an issue with the name of your file. You should know that in java, the name of the main class should be same as the file name....
  8. Re: Exception in thread "main" java.lang.IllegalArgumentException: PWC6309: Illegal c

    please provide you code so that we can have look
  9. Thread: Restrictions

    by kindk12
    Replies
    1
    Views
    355

    Re: Restrictions

    There is a good way of doing it. I will give you the agorithm

    1. you take an input string from the user lets say word
    2. then you can use the lo statement
    while(word.charAt(3) != ' ' &&...
  10. Re: ArrayIndexOutOfBoundsException problem in decryption algorithm

    can you tell the name of encryption algorithm you are using. I actually wanted to check your algorithm correctness.
  11. Re: ArrayIndexOutOfBoundsException problem in decryption algorithm

    i found the error now but your algorithm is wrong.
    In you keydecrypt method nums = numValues(toArray(fin)); should be out of the loop statement. This was causing the problem.
    overall it should be...
  12. Re: ArrayIndexOutOfBoundsException problem in decryption algorithm

    I found errors in you algorithm. After you encrypt the word mississippi, the numeric cypher text would be 82, 30, 0, 0 each at nums[0], nums[1] and so on. When the turns comes of the third value that...
  13. Replies
    4
    Views
    1,134

    Re: Can Somebody Help me?

    First let me explain you what your program does. It taken be taken as a money counting machine. Suppose say in your country there are only money bill of 20, 10, 5 and 1. And say you want to know how...
  14. Replies
    3
    Views
    794

    [SOLVED] Re: Need Help Completing a Loan Table

    I found your errors.
    First at the beginning of the program where you defined your BEGIN_RATE, END_RATE AND RATE_INCR, you should change that to percentage value. It is because you have not changed...
  15. Replies
    4
    Views
    1,081

    Re: Switching between classes

    This is a pretty much kind of design issue. When you have two class and you want them to interact and if you want to switch between them. I would recommend using a third class that will act like a...
  16. Replies
    1
    Views
    1,210

    Re: tips for beginner programmer

    starting out with java, TONY gaddis. This is a American book but one of the best out in market. Buy older version. They are cheap and practice each and every exercise in every chapters. This is how I...
  17. Replies
    4
    Views
    1,134

    Re: Can Somebody Help me?

    I compiled and checked the result. The program is running perfectly fine. Let me explain what you program is actually doing. Suppose you wanted to know how much is 1 dollar in peso and you also...
  18. Replies
    6
    Views
    619

    Re: DecimalFormat error when compiled

    THIS SHOULD RUN NOW
    ...edited by moderator
  19. Thread: Please help!

    by kindk12
    Replies
    6
    Views
    381

    Re: Please help!

    YOU CODE IS FULL OF CRAP
    AND YOU NEED TO LEARN JAVA AGAIN DUDE
    HERE IS WHAT CAN GIVE YOU THE OUTPUT
    ...
  20. Re: Can someone see whats wrong with my code, please?

    public class Car
    {
    private String make;
    private String model;
    private int year;

    public Car() {
    this.make = "Nissan";
    this.model = "Sivia";
    this.year = 1992;
  21. code is corrected

    I HAVE NOT SEEN YOU OTHER CLASSES AND FUNCTIONS BUT AS FAR AS I SAW YOUR LAST CLASS, I CORRECTED SOME STUFF THAT WILL GIVE YOU CORRECT RESULT.
    THE OLD ONES ARE COMMENTED AND THE I HAVE ADDED THE...
  22. Re: could anyone tell me why am I getting this error?

    Scanner in = new Scanner("datafile.txt") //wrong way

    //RIGHT WAY
    File file = new File("datafile.txt");
    Scanner in = new Scanner(file);

    I hope that helps if the rest of your code is right
  23. Replies
    11
    Views
    456

    friendName not filename

    CHECK THE LINE WHERE I PUT ARROW HEAD




    import java.io.*;
    import java.util.Scanner;


    public class yourClass{
  24. Replies
    1
    Views
    333

    Re: Hello, New to Java Programming

    Starting out with java, by Tony Gaddis is the best book I have found so far. I learned java from that book and I find it still very useful. Every chapters are pretty much simple and anyone can...
  25. Replies
    1
    Views
    422

    Re: Programming a basic back and forth model?

    Could you post the original copy of your project so I could understand what exactly you wanted. It looks kind of confusing.
Results 1 to 25 of 29
Page 1 of 2 1 2