Search:

Type: Posts; User: amnez1ya

Search: Search took 0.10 seconds.

  1. Thread: Calculator

    by amnez1ya
    Replies
    1
    Views
    716

    [SOLVED] Calculator

    Hello everyone, I have a question about the console calculator.

    The assignment will look like this:

    assign characters that will represent MR M+ M- and inform the user about it
    the number...
  2. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    public static void main(String[] args) {
    LocalDate leapYear = LocalDate.now();
    int i = LocalDate.now().getYear();
    while (i > 2012) {
    leapYear =...
  3. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    Thanks for the help, I solved the problem)
  4. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    This is the question I asked you
  5. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    Yes, that's right, nothing comes to mind with this package ((
  6. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    A Leap/high year has 366 days and a regular year has 365.))
  7. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    It is allowed to use the whole package, but I need to display all high years in the last 10 years, but using the classes of this package, and not just like I did without this package.
  8. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    I'm wildly sorry, use classes from the package Time
    my head is already boiling
  9. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html
  10. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Re: Leap year

    is in the package java.time.*
    im tried



    import java.util.Scanner;

    public class Year {
    static Scanner in = new Scanner(System.in);
  11. Thread: Leap year

    by amnez1ya
    Replies
    19
    Views
    708

    [SOLVED] Leap year

    Hello everyone, and again a novice developer with you)))
    Tell me how to push my code into a loop so that it displays all the high years for the last 10 years)
    I know how to solve the problem...
  12. Replies
    4
    Views
    620

    [SOLVED] Re: Compare strings

    Thanks for the thought, I'll take a look at it
  13. Replies
    4
    Views
    620

    [SOLVED] Re: Compare strings

    I didn't quite understand your question...
    I can't figure out how to change this code so that it returns 1 and 0.
  14. Replies
    4
    Views
    620

    [SOLVED] Compare strings

    public class CompareString {
    public static void main(String[] args) {


    StringBuilder s1 = new StringBuilder("axx#bb#c");
    StringBuilder s2 = new StringBuilder("axbd#c#c");
    ...
Results 1 to 14 of 14