Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #44.2K
I have to create a class that will pick partners at random for my class tomorrow, out of the people that are in it. What I have so far is simple enough... [CODE]import java.util.*; import java.util.Random; public class GetPartners { public GetPartners() { } public void getPartner() { String[] names … |
|
[ICODE]public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Input an integer: "); int n = in.nextInt(); int d = 1; int temp = n; while (temp > 9) { temp = temp / 10; d++; } System.out.println(n + " can be expressed in " + d + … |