Posts
 
Reputation
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
~2K People Reached
Favorite Forums
Favorite Tags
java x 14
Member Avatar for nicolek808

I am having trouble with stacks and infix and post fix this is my error: [COLOR="red"]Reading from file "input16.txt": Infix expression = (5) Exception in thread "main" java.util.EmptyStackException at ArrayStack.pop(ArrayStack.java:51) at test.infixToPostfix(test.java:140) at test.displayArray(test.java:87) at test.main(test.java:53)[/COLOR] this is the txt file: (5) (1+1) ((9/3)-2) (9-(3/2)) (1+(4-(9*(6/(5%7))))) ((1+4)-(((9*6)/5)%7)) (((1+(4-9))*6)/(5%7)) ((1+(2-3)) (1+(2-3))) …

Member Avatar for ejosiah
0
2K
Member Avatar for nicolek808

[icode] import java.util.Scanner; import java.io.File; import java.util.StringTokenizer; import java.util.InputMismatchException; import java.io.FileNotFoundException; public class KashiwabaraNicole16test { /******************************************************************************* * Outputs integers from user input external files. ********************************************************************************/ public static void main( String[] commandlineArguments )throws NullPointerException { //Error Checking For Command Line Arguments.. if(commandlineArguments.length == 0){ System.out.println("Please enter the file name as the …

Member Avatar for Grn Xtrm
0
139
Member Avatar for nicolek808

hi :) This program requires me to read user input from the commandline (a int and a string) and use recursion to print out the the first letter of the string x times based on the int user input: I have this so far, but it seems print out just …

Member Avatar for VernonDozier
0
141
Member Avatar for nicolek808

The program requires an integer input from a user at the command args and prints out the numbers backward. I have this so far, however, it only prints 1 number, which is the number entered into args. [code=java] public class KashiwabaraNicole7 { /******************************************************************************* * Initializes program * @ param commandlineArguments …

Member Avatar for nicolek808
0
120
Member Avatar for nicolek808

Output should be as show below: and files are attached. 1. Here is example output for input file electricity.txt: number of integers in file "electricity.txt" = 4 index = 0, element = 1877 index = 1, element = 1923 index = 2, element = 1879 index = 3, element = …

Member Avatar for quuba
0
133
Member Avatar for nicolek808

I need help. I dont know what to do next to get the following output: groceries.csv: (file needed to input at command prompt (args)) Name, Number natto, 3 eggs, 12 shiitake, 1 negi, 1 garlic, 5 umeboshi, 1 (need to output as shown below): number of integers in file "groceries.csv" …

Member Avatar for javaAddict
0
122