Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errore #4335

Closed
Jesoonn opened this issue Jan 15, 2025 · 1 comment
Closed

errore #4335

Jesoonn opened this issue Jan 15, 2025 · 1 comment

Comments

@Jesoonn
Copy link

Jesoonn commented Jan 15, 2025

Stavo facendo un codice stupido, molto semplice, eccolo:

import java.util.*;

public class App {
public static void main(String[] args) throws Exception {
System.out.println("Il codice è partito correttamente.");

    stampaCiaoMondo();
    sommaDueNumeri();

}

private static void stampaCiaoMondo() {
    System.out.println();
    System.out.println("Inizia funzione 'stampaCiaoMondo'");
    System.out.println("Ciao Mondo!");
}

private static void sommaDueNumeri() {
    System.out.println();
    System.out.println("Inizia funzione 'sommaDueNumeri'");
    Scanner input = new Scanner(System.in);

    int a = input.nextInt();
    int b = input.nextInt();
    
    int risultato = a + b;
    System.out.println("Il risultato è :" + risultato);

    input.close();
}

}

una volta eseguito il codice ho questo problema:


Ultimi 100 tasti:
Space & Space ' C : \ P r o g r a m Space F i l e s \ J a v a \ j d k - 1 7 \ b i n \ j a v a . e x e ' Space ' - X X : + S h o w C o d e D e t a i l s I n E x c e p t i o n M e s s a g e s ' Space ' - c p ' Space ' C : \ U

Eccezione:
System.ArgumentOutOfRangeException: Il valore deve essere maggiore o uguale a zero e minore della grandezza del buffer della console in tale dimensione.
Nome parametro: left
Valore effettivo: -2.
in Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
in Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
in Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
in Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
in Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) in Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
in Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
in Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 15, 2025
@daxian-dbw
Copy link
Member

The issue report doesn't include necessary information needed for triage. Please use the issue template when opening an issue. Also, you may want to upgrade PSReadLine module to the latest v2.3.6 as many similar issues were already resolved in the new version.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants