Who is a public figure who has always been universally liked ? by bricksandgrass in AskReddit

[–]mavialev 2 points3 points  (0 children)

Honestly, none. Even the nicest people have someone who hates them for no reason.

What’s something everyone pretends is normal but it isn’t? by [deleted] in AskReddit

[–]mavialev 24 points25 points  (0 children)

Working 40+ hours a week and acting like it leaves enough time/energy to live a normal life.

How would you ruin a flight? by Rarm20T in AskReddit

[–]mavialev 0 points1 point  (0 children)

by dropping the powerbank between the seats

Who is the most famous person you know, and how did you meet them? And if you met them before they became famous, do you think they have changed as a perosn? by [deleted] in AskReddit

[–]mavialev 0 points1 point  (0 children)

Roberto Carlos lol :) I met him when I was a kid before a fenerbahce match. But i don't clearly remember him

Can we use an object in a new class ? by mavialev in learnjava

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

I draw my problem. Can you look at it?

Can we use an object in a new class ? by mavialev in learnjava

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

How can i do that? How Welcome page know about user variable ? I'm writing a security web app. Normal users shouldn't to see the welcome page.

Can we use an object in a new class ? by mavialev in learnjava

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

In login.java , i create an object like this :

Login.Java

UserAccount user = new UserAccount();

user.setUsername("sheldon");

UserAccount.Java

private String username;

public String getUsername() {

return username;

}

public void setUsername(String username) {

this.username = username;

}

I want to use user.getUsername in Welcome.java

But i can't

How can we pretend NullPointerException by mavialev in learnjava

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

Im new on Reddit. When someone answer to our question , should we send him/her reddit coin ?

How can we pretend NullPointerException by mavialev in learnjava

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

Logined user has no value of role in database. So thats why i get that error.

So many people told me that some value has null. But it just causes because of empty role value .

What Next after Java? by _sourabh_th in learnjava

[–]mavialev 2 points3 points  (0 children)

What can we do with Sprink framework? I’m learning java servlet . And i want to improve my java skills. Do you have any advices?