Search:

Type: Posts; User: copeg

Page 1 of 20 1 2 3 4

Search: Search took 0.89 seconds.

  1. Thread: power of math

    by copeg
    Replies
    7
    Views
    85

    Re: power of math

    Not directly relevant to the problem at hand, but if you must bring it up - the code posted above uses a static import. See https://docs.oracle.com/javase/1.5.0/docs/guide/language/static-import.html
  2. Replies
    2
    Views
    68

    Re: how to display user defined URLs

    Thread moved from "What's wrong with my code" to Other Programming Languages as this is not a Java related but apache http related.
  3. Re: Not getting all of the terminal output using ProcessBuilder

    Did you happen to also check the ErrorStream returned by the Process? I would also recommend reading When Runtime.exec() won't | JavaWorld which may be helpful
  4. Thread: Cool Numbers

    by copeg
    Replies
    9
    Views
    166

    Re: Cool Numbers

    Do you have a specific question about your attempt to code this in java? What have you tried?
  5. Thread: Test

    by copeg
    Replies
    3
    Views
    99

    Re: Test

    Under most forums Thread Solved should be located under 'Thread Tools' -> 'Mark this thread as Solved...'. I believe there are some forum topics in which this tools is not enabled/available (eg Cafe,...
  6. Replies
    4
    Views
    144

    [SOLVED] Re: Code breaks after upgrading to Java 8

    JSP files are compiled into classes which extend HttpServlet by the web container at runtime - if all you have is JDK 8 to compile then the code must conform to the JDK 8 spec/API. I'm not sure of...
  7. Re: Reverse grades from largest to smallest and the corresponding names..

    Threads merged. Please avoid posting the same question in multiple threads.
  8. Replies
    3
    Views
    88

    Re: Problem with array...

    Did you do as I suggested in my previous post? That is the thought process of debugging code - step through the code in one way or another and think about each step and how it affects the outcome....
  9. Replies
    3
    Views
    88

    Re: Problem with array...

    Add some printlns to the loop to help you debug, or write out your algorithm by hand to clarify exactly what is going on. For example:

    B[0] = ....
    sort(B)
    B[1] = ...
    sort(B)
    ...

    See...
  10. Replies
    9
    Views
    172

    Re: Add a console window to my Java GUI

    @allisbs, please read the Forum Guidelines, in particular point #7 - for your sake I have removed the insult which will get you nowhere. I also provided advice (which seems to have been ignored) on...
  11. Replies
    3
    Views
    72

    Re: Grid Bag Layout/Constraints Help ?

    The GridBagConstraint class has a gridwidth field which allows you to specify the width of a Component. Set this as needed for the JTextField, then reset for the remainder of the Components.
  12. Re: I need my java app to open a console base program and run a command

    Using Runtime.exec will typically cause an application to be platform dependent. In this case, at least for mac, there is no 'cmd.ex' - you must open the terminal application instead (same goes for...
  13. Replies
    4
    Views
    317

    Re: What is an Exception?

    Thread locked. @varunrajan, welcome to the forums. If you have a specific question please start a new thread, but please do not revert your signature (as detailed in the PM sent) and please do not...
  14. Replies
    8
    Views
    247

    Re: Looking for a help to compile a Java code.

    You're welcome - glad to be of help. Yes, this sub-forum is "What's wrong with my code". Perhaps not the most ideal sub-forum for this (maybe "Java Theory and Questions" is more appropriate), but...
  15. Replies
    1
    Views
    114

    Re: Java Programming Clarifications

    Welcome to the forums. Please read the Forum Guidelines if you have not already. I have moved your thread - please avoid posting questions like this to other peoples threads.

    Recommended reading:...
  16. Replies
    8
    Views
    247

    Re: Looking for a help to compile a Java code.

    In Linux, the export command sets system variables. So if you use 'export CLASSPATH=...', the CLASSPATH variable will be accessible within this environment (if you type 'echo CLASSPATH' it should...
  17. Replies
    8
    Views
    247

    Re: Looking for a help to compile a Java code.

    I believe this was originally posted in the 'Members Introductions' sub-forum as their is still a redirect link there. Given it is more of a question than an introduction one of the moderators (don't...
  18. Replies
    8
    Views
    247

    Re: Looking for a help to compile a Java code.

    It seems you are missing at least one library, probably the Java3D library. This library needs to be downloaded from whoever distributes it and placed on the classpath (see PATH and CLASSPATH (The...
  19. Re: how to cheek all filelds in result set(one by one)

    As I said above, your problem appears to have nothing to do the any relevant SQL code, thus the code you posted doesn't shed any light on the problem. Here's my advice: Visit the link I posted above...
  20. Re: how to cheek all filelds in result set(one by one)

    Ah, so this is a Table question rather than a SQL question? I do not see any code in the above posts related to how your table is created - this code is most likely where the issue lies. Further -...
  21. Re: how to cheek all filelds in result set(one by one)

    Sorry, but I still don't understand what the problem is. Does it compile? Are there exceptions? Does it misbehave (if so, how - what do you expect and what do you get)?
  22. Re: how to cheek all filelds in result set(one by one)

    Please define "doesn't work". What exactly are you trying to do? Why do you need to count the rows before retrieving them?
  23. Replies
    18
    Views
    339

    Re: Please help me for this Java Program

    You've posted your assignment three times - please do not do so again.



    "and try to code" - your words suggest you must have at least tried. Please post your code/attempt and describe specific...
  24. Replies
    3
    Views
    230

    Re: Grab data from webpage

    Recommended reading: Lesson: Working with URLs (The Java™ Tutorials > Custom Networking)
  25. Replies
    1
    Views
    130

    Re: Google Spreadsheet Scripting

    Thread moved to Other Programming Languages (javascript != java)
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4