CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: XDan

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    1,021

    Help with Linux bash script to copy a file...

    I have to make a script that will prompt the user for a source file then a destination file and then copy the source to the destination. This is what I have so far:


    #!/bin/bash

    echo -n "Enter...
  2. Re: Probably a simple question but when creating executable jars

    Ok because I tried that before and I didn't see an option to change the icon under properties. Maybe I'm looking in the wrong place or something? >.>
  3. Probably a simple question but when creating executable jars

    How do you change the image displayed for the jar? Like I want to have my own custom icon for instead of the default Java logo.
  4. Replies
    1
    Views
    495

    Re: A help for a little project

    Nobody will post the complete solution for you. Try it yourself, post what you have and we'll try to help you that way.
  5. Replies
    11
    Views
    1,196

    Re: Text formating

    I compiled and ran your code and it pretty much has the same output as mine you're just displaying elements in the array in a table format with with everything aligned. I did the exact same thing...
  6. Replies
    11
    Views
    1,196

    Re: Text formating

    Okay, well my solution is far less lines of code. Here it is:


    public class Table {

    public static void main(String args[]) {

    double values1[] = new double[] {10.5, 3.7, 234.3};
    ...
  7. Replies
    11
    Views
    1,196

    Re: Text formating

    http://i247.photobucket.com/albums/gg157/Daniel1640/example.png

    Do you mean something like this? I can post the code for it if you want...

    And please edit your post with
    // Code goes here......
  8. Replies
    14
    Views
    1,439

    Re: Java Begginer Needs Urgent Help

    ^ Post your code up already if you want us to give you suggestions. Nobody is going to code it for you.
  9. Re: Need some help with swap array elements location based on the user input.

    Okay I solved it now. Thanks everyone.
  10. Re: Need some help with swap array elements location based on the user input.

    Thanks I was thinking of some kind of sorting method because my professor was discussing it with us in class, but this might be a more understandable approach.

    Does something like this look about...
  11. Replies
    14
    Views
    1,439

    Re: Java Begginer Needs Urgent Help

    Okay, so post what you have so far and we'll try to help you. You really shouldn't be taking courses like this if you're not interested in it at all though...
  12. Need some help with swap array elements location based on the user input.

    I have an array of 5 strings which the user provides via the scanner class. However, I need to prompt the user to select two indexes of the array and swap them accordingly. I'm exactly sure how to do...
  13. Thread: While Loop

    by XDan
    Replies
    17
    Views
    2,927

    Re: While Loop

    We all get what the point of your program is, but as everyone above has told you it is incorrect right now. Parse the input to a double variable... JOptionPane only accepts Strings how do you expect...
  14. Thread: While Loop

    by XDan
    Replies
    17
    Views
    2,927

    Re: While Loop

    Exactly why you shouldn't be attempting GUI programs yet. Did your teacher actually start you off with swing or are you just doing this yourself? Because if you only know if statements and loops, you...
  15. Thread: While Loop

    by XDan
    Replies
    17
    Views
    2,927

    Re: While Loop

    Okay no offense or anything but if you really want to be a good Java programmer, you should not be starting off with GUIs. First go back and learn all the basics (starting from data types to control...
  16. Replies
    3
    Views
    1,165

    Re: Help with a small program...

    Thanks man, that worked great. It was an easy fix I just used the boolean "on" within the statement.
  17. Replies
    3
    Views
    1,165

    Help with a small program...

    Basically, I have a Fan class and a TestFan class which makes use of the Fan class..

    Fan:

    public class Fan {

    private final int slow = 1;
    private final int medium = 2;
    private final int...
  18. Replies
    3
    Views
    858

    Re: looking for certain kind of text editor

    Thanks, I was looking for this too.
Results 1 to 18 of 19





Click Here to Expand Forum to Full Width

Featured