Search:

Type: Posts; User: AngleWyrm

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Re: Having difficulties with Java for the first time...

    You can test basic java code in this browser environment
  2. Replies
    2
    Views
    1,485

    Re: Nice to meet you all!

    Have you played XCOM, where a 95% chance to hit misses a lot more than once in twenty? Or Rimworld, where a hunter fires at long range with a weapon that says 90% chance to hit at long range? Or any...
  3. Replies
    2
    Views
    2,343

    Re: (ISAM) Indexed Sequential Method in Cobol

    A good place to share source code is github
  4. Replies
    0
    Views
    1,931

    Github CoPilot and Forum Integration

    AI programmer assistant Github CoPilot provides a substantial improvement to the code completion and error checking present in most IDEs.

    This might be a useful addition to forums that field...
  5. Replies
    4
    Views
    4,300

    Re: help with for loop

    Also, the value in set_intensity(255) suggests an 8-bit integer with a range of 256 [0..255], or some larger multiple thereof. But there's also an entry for set_intensity(2000)
    If 2000 were a...
  6. Replies
    3
    Views
    1,736

    Re: Small help with my code :)

    This type of mapping from variable to meaning is something inherited from mathematics. Modern programming languages can incorporate that information directly into the name like so

    double...
  7. Replies
    1
    Views
    1,565

    Re: String literal and String objects

    String myString = "my new string";
  8. Thread: help needed

    by AngleWyrm
    Replies
    1
    Views
    1,710

    Re: help needed

    Creating a class in Java
  9. Replies
    1
    Views
    1,644

    Re: Saving a var in private class member

    That's not a setter, that's a getter. You can tell the difference because it takes no inputs and returns an output.
    And it's there specifically to prevent you from fiddling with the variable...
  10. Replies
    1
    Views
    1,596

    Re: What am I supposed to return?

    public String getMenu()
    This line states the return type of the function getMenu is a String.
  11. Replies
    1
    Views
    2,132

    Re: Csv file and object

    Example load() function
  12. Re: Is there an algorithm to find a concentration of points?

    https://youtu.be/FgakZw6K1QQ
  13. Re: Is there an algorithm to find a concentration of points?

    Check out Principal Component Analysis
  14. Replies
    3
    Views
    1,081

    Re: Need help modifying a method

    You haven't taken my advice, so why should I expect even more such advice would be useful?

    I do have an opinion: The habitual and pedantic use of single-letter variables is a hold-over from...
  15. Replies
    3
    Views
    1,081

    Re: Need help modifying a method

    rename the variable i to index.
  16. [SOLVED] Re: How can I format my string output in Java?

    int someInt = 3;
    float someFloat = 1.225;

    System.out.println(
    String.format("Integer value: %s, float value: %f", someInt, someFloat)
    );

    String formatting codes
  17. Replies
    1
    Views
    825

    Re: manipulation of a string

    final String myImmutableString = "hello";
    String ordinaryString = " world";

    myImmutableString += ordinaryString;
  18. Replies
    1
    Views
    1,460

    Re: Just joined to be part of Java community!

    Java video course https://youtu.be/-C88r0niLQQ
  19. Replies
    1
    Views
    977

    Re: Separate a big junk of text from main?

    12x40 = 480 words. Since they've been declared as constant, just make them constants.

    Constants.java

    public class Constants {

    public static String[] MY_PHRASES = {
    "first phrase",
    ...
  20. Replies
    1
    Views
    1,193

    Re: ArrayList.size()

    public class ArbitraryClass {
    private Integer someValue = 0;

    ArbitraryClass(Integer construction_initializer){
    someValue = construction_initializer;
    }

    } // ArbitraryClass

    import...
  21. Replies
    2
    Views
    1,081

    Re: Java Question

    I would create a function compareInts(int A, int B) that returns a string {"less than", "equals", "greater than"}
    Then how to generate 60 comparisons would become a separate chore, and entirely up...
  22. Replies
    2
    Views
    932

    Re: Will my program work every time?

    https://i.imgur.com/sWkT38M.png
    yes it considers each of the three ranges.

    If the program falls through all three if statements, then maybe variable vodki = null. But if vodki = null, then if...
  23. Replies
    6
    Views
    1,034

    Re: Calculate end date based on date selected

    Periods, duration, date and time arithmetic in Java 8+
  24. Re: How to find maximum, minimum and occurence time of index in an array list

    I wrote a solution but was advised against posting complete solutions, as it tends to attract those who want only to pass a test without exercising skill. There's some loss of learning by example,...
  25. Replies
    10
    Views
    1,018

    Re: Printing ArrayList

    Java String.format specifiers
Results 1 to 25 of 44
Page 1 of 2 1 2