Search:

Type: Posts; User: fh84

Search: Search took 0.08 seconds.

  1. Thread: Multiple Queues

    by fh84
    Replies
    1
    Views
    5,351

    Multiple Queues

    Hi,

    I have a project and I need to create mulitple queues that run concurrently. It is a queue simulation with
    number of checkouts with a random probability of customers joining any one of the...
  2. Replies
    3
    Views
    13,951

    Re: float to 2 decimal places

    well this is the actual code:



    double meanValue = 0;
    meanValue = meanValue + rndNumber;
    double mean = meanValue / 99;
    System.out.println("The Mean Value is :" + mean);
  3. Replies
    3
    Views
    13,951

    float to 2 decimal places

    hello to all,
    is there any easy way to convert a float to 2 decimal places?
    all the examples on the net are too complicated



    f = f/99;


    this is all i want to do.
  4. Replies
    8
    Views
    2,335

    Re: write text to a file help

    Well am using a queue simulation and I want to write every line of the queue
    The code below shows more details


    if(tillQueue.peek() == null)
    System.out.println(i+"\t"+"\t"+...
  5. Replies
    8
    Views
    2,335

    Re: write text to a file help

    public static boolean saveStringToFile(String fileName, String saveString)
    {
    boolean saved = false;
    BufferedWriter bw = null;

    try
    {
    // bw = new PrintWriter(new...
  6. Replies
    8
    Views
    2,335

    Re: write text to a file help

    Hello to all,
    I have managed to write to a file but is keeps writing on the same line.
    I’ve tried «\n" but the .txt file recognizes it as a character.
    any ideas?
    thank you
  7. Replies
    1
    Views
    6,051

    Unable to create a new connection!

    Hello to all,

    I don’t know if the right place to post the problem… but as long as my problem remains ill give a try.
    Well am very new to oracle sql developer and I am trying to create a new...
  8. Thread: if...else

    by fh84
    Replies
    1
    Views
    1,698

    if...else

    Hello to all,



    public Person elementAt(int index)
    {
    if (maxSize < index)
    {
    System.out.println("Wrong Index");
    System.out.println("PLease Insert A Value From 0...
  9. Replies
    11
    Views
    13,830

    Re: Convert CHAR to STRING

    it did work thank you so much!!!
  10. Replies
    11
    Views
    13,830

    Re: Convert CHAR to STRING

    hello guys,
    i just tried all the suggested combination and all of them
    came with the following error :
    Incompatible operand types String and char on the following lines

    the error appears both...
  11. Replies
    11
    Views
    13,830

    Re: Convert CHAR to STRING

    no! assignment's specification!
  12. Replies
    11
    Views
    13,830

    Re: Convert CHAR to STRING

    i did that and the following error :
    The method toString() in the type Object is not applicable for the arguments (char)
  13. Replies
    11
    Views
    13,830

    Convert CHAR to STRING

    hello to all,


    public class Person
    {
    protected String name;
    protected String gender;
    protected int dateOfBirth;
    protected String address;
    protected String...
Results 1 to 13 of 13