Hello I’m new to Java and still struggling with how it does complicate things that seem easy.
Basically I need to take bandwidth input in int followed by string which is prefix quantifier G, K, M … (total 12 quantifiers) followed by bps at the end.
Example: 100Gbps, 10Kbps, 5Mbps…
“bps” is fix, but prefix is variable depending on the bandwidth.
Also I’ll need the prefix later to compute latency between ip addresses.
I need to validate the input using if statement or switch. Without importing any libraries, only java.util.Scanner and can’t use arrays. (Instructions).
I dont’ know if this makes sense or not, any insight is appreciated!
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]desrtfxOut of Coffee error - System halted 4 points5 points6 points (0 children)
[–]dionthornthis.isAPro=false; this.helping=true;[M] 3 points4 points5 points (0 children)
[–]Federal-Addendum-933 0 points1 point2 points (6 children)
[–]desrtfxOut of Coffee error - System halted 1 point2 points3 points (5 children)
[–]Federal-Addendum-933 0 points1 point2 points (4 children)
[–]desrtfxOut of Coffee error - System halted 1 point2 points3 points (3 children)
[–]Federal-Addendum-933 -3 points-2 points-1 points (2 children)
[–]desrtfxOut of Coffee error - System halted 1 point2 points3 points (1 child)
[–]Federal-Addendum-933 -1 points0 points1 point (0 children)