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
~1K People Reached
Favorite Forums
Favorite Tags
java x 18
Member Avatar for JConnor135

Can someone please help me find out why I am getting a nullpointerexception for this code. Ive been racking my brain and cant find it for the life of me. The program is supposed to delete an element from the linked list that is built in the main method and …

Member Avatar for Alex Edwards
0
270
Member Avatar for JConnor135

For this code to delete an element from a linked list how do I get the head to point to the first element in the list(which is 0)? [ICODE]public class IntNode1 { public int item; public IntNode1 next; public IntNode1 head; //////Constructor/////// public IntNode1(int item1, IntNode1 next1) { next=next1; item=item1; …

Member Avatar for Alex Edwards
0
275
Member Avatar for JConnor135

I am trying to write a program that will delete the nth element from a linked list. Before I was getting a nullpointerexception but I think I cleared that up. Now I just get a repeating error message that I put in the code for when the list goes to …

Member Avatar for JConnor135
0
270
Member Avatar for JConnor135

Hi, I am trying to write a code that will delete an element from a linked list and then display the updated list, but I keep getting a nullpointerexception, does anyone know where I went wrong? [ICODE]import java.util.*; public class IntNode { public int item; public IntNode next; public IntNode …

Member Avatar for Alex Edwards
0
84
Member Avatar for JConnor135

for this code I need to set string d to char c, can anyone tell me how to do it? [ICODE]public static void main(String[] args) { int n; int m; String d; char c; Scanner sc = new Scanner(System.in); System.out.println("Input Integer: "); //get the value n=sc.nextInt(); int answer = sum_upto(n); …

Member Avatar for Software guy
0
167
Member Avatar for JConnor135

For this piece of code I have to change the arguments in the writeLine and writeBlock methods to char c, instead of String c. The problem is I dont know how to get the scanner to read in a character instead of a string. Is there any way to go …

Member Avatar for peter_budo
0
129
Member Avatar for JConnor135

I have two methods that when prompted by the user will print out n amount of String on m rows, for ex: * 3 3 would print out: *** *** *** here is the code I have: [ICODE]public static void writeLine(String c, int n) { if(n==0) System.out.println(); else System.out.print(c); writeLine(c, …

Member Avatar for JConnor135
0
193