I'm trying to compile the JCurses package (https://github.com/kba/jcurses), but its Makefile (created by ./configure) still uses the obsolete javah mechanism for generating C headers for its Native...
Type: Posts; User: jlturriff
I'm trying to compile the JCurses package (https://github.com/kba/jcurses), but its Makefile (created by ./configure) still uses the obsolete javah mechanism for generating C headers for its Native...
I've been using Oracle's documentation and tutorials to learn the language. Strangely, their tutorials only cover Java 8, while their current Java is 17. (!) This means that what little there is in...
Yes. I have come to that conclusion, and will put my {s on their own lines in future.
--- Update ---
And now the "Solved:" widget has disappeared from all levels of my threads. :-(
Hah! But...
I looked at that, and as far as I can see it's inside my class. If there's a brace out of place, I can't see it.
import java.io.File;
import java.util.*;
public class Jute
...
Here I am again. In Java SE 16, I wrote
/* Return true if testWord is an abbreviation of fullWord. Case must match. */
public static boolean isAbbrev(String testWord, String...
Boy, am I embarrassed.
I've just started learning Java. I have installed Oracle's Java 16 on my OpenSuSE desktop machine, and I wrote this little program to display System properties:
import java.io.Console;
...
Yes, I guessed that static Might be the way to do it, but couldn't tell from any of the descriptions that I've seen anywhere.
I found it. Edit the top/first post in the thread. Below the text...
I'm a retired IBM mainframe programmer and systems programmer. I started in 1974, writing FORTRAN, COBOL and Assembler programs. In the mid 1980s I progressed to systems programming (systems...
Good. That's what I wanted to know.
(How do I mark this thread "solved"?
My primary concern is how to select the appropriate scope for the method; it should be usable anywhere in the application.
Its signatures are
bool abbrev(String fullWord, int minLength,...
Okay. I interpreted "any class" as any non-specific class. :-)
As usual, if the strings passed start with '-' they will be evaluated as options for the program; if not, as filepaths. How the...
"any class"? I'm not sure that I understand your question. The methods will be used for processing Strings. E.g.
public static int words(String phrase) {...}
or
public static String...
I'm just starting out to learn Java programming, starting with this basic piece of code:
public class MyApplication
{public static void main(String[] args)
{MainFrame frame = new...