You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Lars Bogren (Jira)" <ji...@apache.org> on 2021/09/28 10:48:00 UTC
[jira] [Created] (NETBEANS-6071) print fungerarinte i hop med
Scnner
Lars Bogren created NETBEANS-6071:
-------------------------------------
Summary: print fungerarinte i hop med Scnner
Key: NETBEANS-6071
URL: https://issues.apache.org/jira/browse/NETBEANS-6071
Project: NetBeans
Issue Type: Bug
Environment: import java.util.*;
public class Godis {
public static void main(String[] args) {
var scan = new Scanner(System.in);
int gram = 0;
double pris = 0;
System.out.print("Hur många gram: ");
gram = scan.nextInt();
System.out.print("Pris/gram: ");
pris = scan.nextDouble();
System.out.println("Det kostar: " + gram * pris);
System.out.print ("-------- Programmet klart. --------");
}
}
Reporter: Lars Bogren
Print fungerar fortfarande inte ihop med Scanner
trodde att 12,5 skulle lösa detta
jGrasp kan det fortfarande
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists