About 50 results
Open links in new tab
  1. vector - create a stack in java - Stack Overflow

    Jun 25, 2014 · I need to use stack to create a list storing objects, and I try to look up in API, however, I have no idea which is the syntax I should refer to. Here is my code: public class …

  2. java - How do I create a file and write to it? - Stack Overflow

    What's the simplest way to create and write to a (text) file in Java?

  3. How to create a custom exception type in Java? - Stack Overflow

    Closed 6 years ago. I would like to create a custom exception in Java, how do I do it?

  4. How to create multi stacks in java - Stack Overflow

    Apr 6, 2015 · You can make an array of stacks. Then use a loop to initialize every array element.

  5. Java create a new file, or, override the existing file - Stack Overflow

    Sep 30, 2018 · Java 7 introduced the java.nio.file package which includes the very useful Files class. This class provides the write method that does precisely what you're looking for. To …

  6. out of memory - "java.lang.OutOfMemoryError - Stack Overflow

    May 28, 2013 · "unable to create new native thread"); } THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), "unable to create new native …

  7. How can I create a memory leak in Java? - Stack Overflow

    Here's a good way to create a true memory leak (objects inaccessible by running code but still stored in memory) in pure Java: The application creates a long-running thread (or use a thread …

  8. swing - Easiest Way to Create A GUI in Java? - Stack Overflow

    The Java Tutorials on Swing are a pretty good resource. If you don't like hand-coding your UI with Java code there are several GUI builders out there where you can lay out your UI visually and …

  9. dictionary - Create Map in Java - Stack Overflow

    Feb 7, 2013 · I'd like to create a map that contains entries consisting of (int, Point2D) How can I do this in Java? I tried the following unsuccessfully. HashMap hm = new HashMap(); hm.put(1, …

  10. java - array of stacks - Stack Overflow

    May 8, 2009 · Is it possible to create an array of stacks without having to cast the stacks as they come out? Eclipse gives me a warning about not being able to make a generic array of Stack …