r/learnjava • u/tomtheawesome123 • Oct 18 '17
Fastest way to copy 2d array?
Is there a way to do it without using a for loop which just inserts indexes to a new array?
r/learnjava • u/tomtheawesome123 • Oct 18 '17
Is there a way to do it without using a for loop which just inserts indexes to a new array?
r/learnjava • u/Abadhon • Mar 06 '18
so recently i found out that being good at java can make you rich in my country and fortunatly at work im free 80% of the time so i told myself why not use this time to learn java , so
what is the best way to learn java while being at work and doing others stuffs same time and how much time to be really good at
r/learnjava • u/[deleted] • Mar 29 '17
Hi. I need someone to teach me basic things. Like creating an array list from a .txt file and then searching names in it. Its all basic things. I really don't know what to write here. If you are a good programmer can you help me? Message me your Skype ID if you will.
r/learnjava • u/OniDevStudio • May 20 '24
If I'm learning Java only for desktop and game development, is it worth learning Kotlin?
r/learnjava • u/mumini123344 • May 15 '24
Hey guys, Right now I'm chasing Java Software Engineer Intern position, and I'm on test phase now, where I should write test to get to Interview, so do you have any advice what should I except in test or what should I focus as Intern? I was Junior QA Engineer and I am switching as java developer so, what should I study?
r/learnjava • u/rutherfraud1876 • Apr 17 '24
Keyboard buffer is only a concern (in relatively basic programs) when working with nextLine, right? This feels like someone just made it up:
"In Java, when you are reading input using methods like nextDouble() and nextInt() from a Scanner object, you usually don't have to worry about handling the newline character explicitly when switching between reading doubles and integers.
However, there are scenarios where problems can arise, especially in cases where you read a double immediately after reading an integer without consuming the newline character. This can cause issues because the newline character left from the integer input can be mistakenly consumed as the double input.
To avoid such issues, you might consider explicitly consuming the newline character after reading the integer when you intend to read a double immediately after it. This ensures a clean input stream for subsequent inputs to be read correctly.
So, while it's not mandatory to handle the newline character in every scenario when dealing with doubles and integers in Java, being mindful of such scenarios can help prevent unexpected issues in input processing."
r/learnjava • u/symoreo • Sep 25 '24
I'm not into development yet but I'm the path of becoming one. I am starting to understand how things work in the backend. One thing that is not clear to me is how devs version the components. After a change or bug fix is done, they say it is loaded in version x.y.z I have never created versions in my personal projects. How are these versions created and maintained?
r/learnjava • u/theSparrow07 • Sep 17 '24
im currently watching course on udemy from tim is it good for learnign java . i have around 2 yoe
r/learnjava • u/ZestyJay • Oct 15 '24
I have a teacher who sucks at teaching Java and is a hassle to deal with. I need to pass this class any recommendation?
r/learnjava • u/[deleted] • Feb 26 '21
Hey,
So I'm a second year student in CS and have been super lost on what I want to do after my degree. For now I decided to leap toward Java developer career. I am willing to put as many hours as needed into a course, book etc. just so I could progress and get a job as soon as I am confident enough with myself. What languages, skills, tools etc. should I learn and understand? Are there any recommended courses online (paid/free), books that are essential or any other information source that could guide me on the right path and give me a good base foundation to consider applying for an interview. Also what good projects could I do to get my hands on to understand some topics better. I would be super grateful for any help as I am kind of confused as to where to begin. Thank you in advance!
r/learnjava • u/kadenhicklin • Feb 08 '21
I have used python for around 2 years and for a college class we have started to dabble with Java and I can basically only print things in it. All I want to do is assign a variable but whenever I do var name = 1; or something along those lines it immediately throws and error. I have tried pasting in code from google and none of it works. But once I delete it all and go back to the code that prints stuff it works just fine. I am literally about to punch a hole in my computer or rip my hair out since I am on a time crunch.
Thanks,
Kaden
Edit:
Question 4:
Write a program to calculate then display the total amount of cents for the following
3 dollars
2 quarters
5 dimes
10 cents
This is all I want to do, piece of cake right?
Sorry for the temper I'm just really mad that I cant find any answers on the internet and my professor is no help and didn't even teach this material first.
r/learnjava • u/fabioangeli • Jun 27 '23
best resources or courses to learn java?
r/learnjava • u/Ezzedo • Jul 02 '23
public static void print2D (int[][]x){
length of the row in the array
Scanner in = new Scanner(System.in);
System.out.print;
int r = in.nextInt();
System.out.print;
int c = in.nextInt();
for (int i = 0; i < r;i++){
for (int j = 0; j < c;j++){
System.out.print(x[r][c] + "\t");
}
System.out.println("");
}
}
r/learnjava • u/[deleted] • Jun 18 '20
Experienced dev here. I’m quite familiar with java because that’s what I mainly used in school, but never worked with spring. I’ve been tasked with some work in spring recently; most of it is reading and understanding the existing code. Can anyone recommend some quick tutorials/resources that can get me up to scratch quick? Thanks!
r/learnjava • u/HelpmepleaseSomehow • Sep 14 '20
Doing SumOfNumbers, and submit and fail. Same with everything else in part 2. What's wrong with my code?
import java.util.Scanner;
public class SumOfNumbers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int sum = 0;
while(true){
System.out.println("Give a number:");
int number = Integer.valueOf(scanner.nextLine());
if(number==0){
break;
}
sum=sum+number;
}
System.out.println("Sum of the numbers:"+sum);
}
}
It keeps telling me that it fails due to the print being:
Now the print wasGive a number: Give a number: Give a number: Give a number: Give a number: Sum of the numbers:(whatever test answer it wants).
I even tried messing with where to put the System print during the break and it still works but fails submission.
What am I doing wrong? Is this a fluke (it happened in part 1 where i got the answers but told me it was still wrong due to something i couldn't fix)? Should I just move on?
EDIT:
Watch your printing, it literally wanted a SPACE
r/learnjava • u/Vegetable-Pound-6919 • Jul 30 '23
Hi there, I am interested in learning Java as I will transition in 2 weeks into a Senior Soft development role. I have not written Java since my early days I the uni but, my background is in CS, I have coded in C and professionally in Cobol and for personal projects in PHP/ xampp for many years.
I would like to know
Will the Mooc of Helsinki be of use for an intermediate software engineer of 7 years of experience in other
If I submit via neatbeans will I get a certificate of completion?
Do you think that the basic course of Jetbeans is more worth it?
I am interested in OOP principles and general Java knowledge and Java tweaks rather than pure syntax and programming principles .
Any comments will be more than welcome
r/learnjava • u/Thala7781 • Jul 25 '23
Did anyone find out which DSA course was better? I am thinking of starting DSA but don't know which course to follow. Is it better if I pay 4k for the GeekforGeeks course and learn from there or is kunal kushwaha's course better or is there any other channel that is better than these two Can anyone tell me their views on this.
r/learnjava • u/NearbyDay4 • Sep 02 '19
I have a constructor that stores 2 values- one for credit balance and one for debit balance. After you select you want to deposit money to one of the two accounts it will run only the methods ive created for either of the two. How do i tell main method to only run methods for credit balance account only for example? I cannot create two separate classes for each balance btw. Methods are executed through a menu. Thanks.
Not sure if that makes sense here is a paint picture.
the deposit value is taken as input.
r/learnjava • u/koolaidman04 • Oct 07 '18
I am brand new to programming, and my degree program has me learning with Java using IntelliJ CE. I am fan of the Darcula theme so far, but I realized that I would really like to have more color coding of the vocabulary.
Is there a theme out there that color codes all Class, method, type, variable, etc. with a different color for each? Preferably dark theme, but I would deal with light if it provides this functionality.
r/learnjava • u/DANANANARoBiN • Nov 06 '19
Hey guys, so I really want to learn java so I can apply to some internships over the summer. I was wondering what you guys would recommend for some beginner courses that would give me a pretty good idea on the language. Any instructor led course would be good too, which is what I am mainly looking for since I feel like I learn better when I have someone teaching me, but I'm open to all suggestions. Thank you!
r/learnjava • u/durka_durka420 • Mar 13 '20
Please help.
r/learnjava • u/turar_myrza • Sep 11 '19
Could you help me, I need a online Java learning service for free. Could you write a name of course or give the link. Thank you for any help.
r/learnjava • u/[deleted] • Jan 18 '20
Sum of numbers from 1 +2 + 3... N
r/learnjava • u/[deleted] • Jan 14 '20
I am just starting to learn Java. I am using IntelliJ on mac. I cannot even run hello world. It says could not find or load main class. I can't find what the main class is or how to add it. I have been trying to fix the run configuration for an hour. Please help me before I quit CS after 2 weeks