No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
public class roughLargestSmallest { public static void main(String[] args) { System.out.println(" Enter a sentence "); String x = IO.readString(); compress(x); } public static String compress(String original) { int count = 1; StringBuilder builder = new StringBuilder(); for (int i = 1; i < original.length() - 1; i++) { if (original.charAt(i) … |
|
public static void main(String[] args) { System.out.println(" Enter a terminating value "); double term = IO.readDouble(); System.out.println(" How many numbers will you enter "); double numbers = IO.readDouble(); //reading the value of how many numbers the user will enter System.out.println(" What is the largest number you will enter ?"); while(numbers<1){ … |
|
I've attached a picture of how I'm coding the given problem, but i'm certain i'm doing it wrong. could anyone please guide me how to go ona bout the problem? thanks |