Search:

Type: Posts; User: IDK12

Search: Search took 0.94 seconds.

  1. Replies
    3
    Views
    392

    Re: caught or declare might be thrown error

    import java.io.*;

    import java.lang.*;

    import java.util.*;

    public class CreateFile{

    private Formatter in;
  2. Replies
    3
    Views
    392

    caught or declare might be thrown error

    public class CreateFileMain{

    public static void main(String[] args){

    CreateFile object = new CreateFile();

    object.openFile();

    object.writeFile();
  3. Replies
    7
    Views
    4,157

    Re: How to call int value from another class

    wait, i am a little confused. about this method can you explain a little more. Why do i need this method? and i put your method in my code. it's still not correct.
  4. Replies
    7
    Views
    4,157

    Re: How to call int value from another class

    Thanks. Great example. I also have other questions. I amcreating a gpa calculator in a multithread( classes) and my friend told me not to do it that way until i learned all about the java concept. So...
  5. Thread: prime numbers

    by IDK12
    Replies
    4
    Views
    1,099

    Re: prime numbers

    this is what you looking for Sieve of Eratosthenes
  6. Replies
    7
    Views
    4,157

    How to call int value from another class

    Hello guys,

    So if i have something like


    int b= 0;

    if ( b < numOfDay){

    exit;
  7. Replies
    5
    Views
    2,149

    Re: adding main method to a code

    Can you explain for me what encapsulating mean. And why shoudn't i use that producenumber method. Isn't the whole point of orient programming language all about, to have different methods and classes?
  8. Replies
    5
    Views
    2,149

    adding main method to a code

    import java.util.Random;

    public class test {

    public int produceNumber()
    {

    Select = (s.nextInt(sList.length));

    return Select;
  9. Replies
    2
    Views
    2,262

    [SOLVED] Re: Implementing push button

    I think i forgot to click the post button cause now that i checked my reply didn't go through. Anyway, thanks for the help. I decided to change another book cause this one is a little bit too advance...
  10. Replies
    17
    Views
    375,548

    Re: How to Add ActionListener to a JButton. Java Swing

    Thank you for helping. I think this book is moving a bit too quick for me. My friend says he learned nothing about Gui until his second year. I have started reading a new book, and I will post...
  11. Replies
    2
    Views
    2,262

    [SOLVED] Implementing push button

    Hello, I'm IDK, and I'm new here.

    I'm learning to program java and I have a problem implementing a push button into the source code. Well, this is not my source code it came straight from the...
Results 1 to 11 of 11