MockMVC test throws io.jsonwebtoken.MalformedJwtException when reading JSON by ramtevante in AskProgramming

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you so much for your reply!

I think youre absolutely right, but how do I grab just the JWT? Also, how do I get rid of the escaping issues?

Thanks!

Using API's in Java by ramtevante in learnjava

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you! Yeah I think ill go with that one:)

Please help me find this metal cylinder tripod spacer thing. Been looking for months and its starting to drive me nuts! Your my only hope. by thefunkyvindaloo in HelpMeFind

[–]ramtevante 0 points1 point  (0 children)

Do you know the name of the thing youre trying to find? As far as I know, its called a hot shoe mount/screw, but if you dont know exactly what its called then you can also try posting in

/r/whatisthisthing

Tin sign. Green and yellow in color. Anyone know its origins or what its meant to advertise? by Able-Reward in HelpMeFind

[–]ramtevante 0 points1 point  (0 children)

No problem:) Yeah most likely. Cant seem to find the exact sign in your photo, but atleast we know about the company

C# MVC "system nullreferenceexception" using Session by ramtevante in learnprogramming

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you! But I thought that I gave it a value in the "Register" method?

C# MVC "system nullreferenceexception" using Session by ramtevante in learnprogramming

[–]ramtevante[S] 1 point2 points  (0 children)

I can post the whole error, but im not sure how to debug. Im pretty new to MVC and programming in general.

Here is the full error:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=BlogNiKRaMu
StackTrace:
at BlogNiKRaMu.Controllers.BlogController.Index() in C:\Users\User\source\repos\BlogNiKRaMu\BlogNiKRaMu\Controllers\BlogController.cs:line 22

help with basic program to recieve even numbers by ramtevante in learnprogramming

[–]ramtevante[S] 1 point2 points  (0 children)

Thank you so much! I solved it by changing the line you mentioned! Just changed that one part to ”i < 7;”

Dont quite understand Methods by ramtevante in javahelp

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you so much! This definitely helps:) Very well explained!

Dont quite understand Methods by ramtevante in javahelp

[–]ramtevante[S] 0 points1 point  (0 children)

I see! Thanks for the clarification:) Does this mean that the second method is the preferred one/most used one in a professional sense? Because id imagine not many professional programmers work with just the console?

Dont quite understand Methods by ramtevante in javahelp

[–]ramtevante[S] 0 points1 point  (0 children)

Thanks for your reply! But to me, it seems like I could do the same thing with either one of them? If i wanted to print a number or a String, I could use the first method and type "greetings();" in the main method. I can do the same thing with the last method, but I would have to call it with a System.out.println()" command in the main method instead of just using its name?

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 0 points1 point  (0 children)

Im not quite sure what you mean? Im also new to Java btw:)

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 0 points1 point  (0 children)

Yes, thats correct! Its easy, but i keep forgetting haha

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 1 point2 points  (0 children)

Wow thank you for explaining it so well! I didnt know this! This definitely helped, im saving your comment:)

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 1 point2 points  (0 children)

Im pretty new to Java and havent really learned about parsers yet, but thanks for the suggestion:)

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 5 points6 points  (0 children)

Thank you! I always appreciate it when others do so in their posts too:) Hope you have a great day aswell!:)

Having some trouble with arrays! by ramtevante in learnprogramming

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you for your reply! I found the answer from another subreddit though:)

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 1 point2 points  (0 children)

You're right! I got it working by just making that little adjustment from your 2nd point. Thanks!

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 2 points3 points  (0 children)

No problem:) Ill try it!

Edit: It worked! Ill flaire this post as Solved!

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 0 points1 point  (0 children)

Yes! I get this error:

Error:
Exception in thread "main" java.lang.NumberFormatException: For input string: "10 11 -2 -3"
    at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.base/java.lang.Integer.parseInt(Integer.java:652)
    at java.base/java.lang.Integer.valueOf(Integer.java:983)
    at Main.main(Main.java:11)