I was trying to make auth work and then I realized I used a deprecated solution
Reddit » Learn Java
by /u/cakemachines
2d ago
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <ec-profile>default</ec-profile> </properties> Can someone find me a repository that ..read more
Visit website
How do I link a user to an entity?
Reddit » Learn Java
by /u/EnterTheWuTang47
2d ago
I want to create a program that i can use to save articles to read at a later date. I’ve made the basic CRUD features but i want to add users and make sure the users can only see the articles that they have saved. I have found tutorials for user management but none of them go over how to link a user to an entity. Any help would be greatly appreciated submitted by /u/EnterTheWuTang47 [visit reddit] [comments ..read more
Visit website
Is there a Spring Boot initializr for older versions?
Reddit » Learn Java
by /u/cakemachines
2d ago
I noticed the one we have don't allow us to bootstrap a new app with a much older version. Is there a way to still do it somehow? submitted by /u/cakemachines [visit reddit] [comments ..read more
Visit website
Unable to figure out how to use Gradle
Reddit » Learn Java
by /u/sadnpc24
2d ago
I have coded in Java before, but not any serious production-ready code. I took a course or two on Java and that was it. Back then, I used Intellij's IDEA as my Java IDE on a windows machine. Nowadays, I am trying to build web apps with spring boot using neovim as my editor on a linux machine. I've been tryin to make the transition from hand-held coding with IDEA into more manual stuff that allows me to directly interact with my tools. For one, I've been trying to learn Gradle recently, and while I mostly get what it does and how to use it in general, I still feel like I am unable to do any ac ..read more
Visit website
What does a constructor do?
Reddit » Learn Java
by /u/Michaael115
2d ago
I am learning about OOP right now , but im a little confused as to what a constructor actually does? Fore example if we have a Person class: public class Person { private String name; private int age; private int weight; private int height; public Person(String name) { this.name = name; this.age = 0; this.weight = 0; this.height = 0; } I understand that in the constructor we are passing values in. So the instance variable is being set equal to the local variable. But why is the parameter only (String name) ? we could use a constructor that has no parameters: public Person() or we could hav ..read more
Visit website
How to brush up ??
Reddit » Learn Java
by /u/Leading-Toe3279
2d ago
I have completed my class 12th . I studied in icse school till class 10 where i learned logo,qbasics and java (java for 2 years) . Then I studied in cbse board where python was being taught . So it's been 2 years since i studied or code anythin related to java. Any suggestion on how to brush up all of my concepts like a quick recap ... I can't find my class 9 and 10 computer copy where I used to write programs so .... Any help would be appreciated . submitted by /u/Leading-Toe3279 [visit reddit] [comments ..read more
Visit website
Data Structures Supplemental Resources
Reddit » Learn Java
by /u/AlwaysFromtheFuture
2d ago
Hello all. Brand new to coding, I am in my last week of a Data Structures course and while I can digest the vast majority of it conceptually, I struggle when it comes time to synthesize it all and actually write the code for a (relatively) complex homework assignment. Any advice or recommended supplemental learning to help me get more familiar with writing and implementing various methods for things like trees and heaps, linked lists, array lists and such? Also recursion gave me a few gray hairs. submitted by /u/AlwaysFromtheFuture [visit reddit] [comments ..read more
Visit website
Was there any breaking change to Java Spring in the last 5 years?
Reddit » Learn Java
by /u/cakemachines
2d ago
Tried to install an older version of Java Spring, but I can't with the initializr online, so I was wondering if there were any breaking change, especially in the login and JWT auth part. I keep seeing tutorials where the libraries used no longer work. submitted by /u/cakemachines [visit reddit] [comments ..read more
Visit website
Java Swing pop up is very small?
Reddit » Learn Java
by /u/Michaael115
2d ago
I made a snake game last night in eclipse, I watched a video by Bro Code on Youtube as help. When I try to run the program I get a very, very small pop up in the middle of the screen. It has a X button, a maximize button and a Java logo. Thats all there is. Does anyone know what this error is? submitted by /u/Michaael115 [visit reddit] [comments ..read more
Visit website
When I use addContact() there is an error and loop stops but when I remove it and use sout to print some text the program runs until I give 5 as an input to stop it. What is the reason behind it?
Reddit » Learn Java
by /u/passionboy
2d ago
import java.util.Scanner; public class PhonebookDirectory { public static void main(String[] args) { int option = 0; Scanner sc = new Scanner(System.in); System.out.println("\n Phonebook Directory"); System.out.print( " 1. Add a new contact \n 2. Delete a contact \n 3. Search a contact \n 4. Display all contacts \n 5. Exit \n"); do { System.out.print("Enter your choice: "); option = sc.nextInt(); switch (option) { case 1: addContact(); break; case 2: System.out.println("Delete a contact"); break; case 3: System.out.println("Search a contact"); break; case 4: System.out.println("Display all co ..read more
Visit website

Follow Reddit » Learn Java on FeedSpot

Continue with Google
Continue with Apple
OR