Create a GPA Calculator in Java - Full Tutorial with Source

preview_player
Показать описание
Full source code for this GPA Calculator here:

Building a full GPA calculator in Java! Starting from scratch, beginning to end, and coding live in this full lesson!

Learn or improve your Java by watching it being coded live!

Hey, I'm John! I'm a Lead Java Software Engineer who has been in the industry for over a decade.

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Phone I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

☕Complete Java course:

Рекомендации по теме
Комментарии
Автор

This is the best conding related channel I've ever stumbled upon, bro! Hat's off! Keep em coming!! <3

paulus_germanus
Автор

Good interview tip 31:22, thank you... Its cool to know that this is your first video every....☺

skccharan
Автор

I learned a lot from this video thanks for the clear presentation

mayorfred
Автор

Congratulations on the video. I'm from Brazil, I'll watch all your videos :)

TheWalace
Автор

Really loved the video..if you could do one to make GUI GPA calculator..now that that would be awesome

bigd
Автор

This was fun.
Can we make it into a GUI type of calculator too?

TheRealAnkitSharma
Автор

great work .sir kindly make its GUI as soon as possible thanks

MOHSINKHAN-fvkk
Автор

Love your videos ! Why do we need to create a variable creditString but not set that as Interger at the first place ? Is it to allow us to use parseInt in the try...catch block ? Thanks

chilli
Автор

32:06 code " 1 1A 2B " is a cool reference of self-destruct sequence 2 code of the USS Enterprise from Star Trek (the golden age of great movies)

enriquepasa
Автор

I like the video.
It’d be great if you could provide a link to download the code.
I’m too slow to keep up with you in real time 😂

austin
Автор

thank you for the video! May i ask if youre able to do a tutorial on GUI based cgpa calculator?

randykarl
Автор

Why are you using a wrapper class, Integer? Why not just use int?

butterscotch_
Автор

does it matter what build system I choose? IntelliJ, Maven, Gradle

lethality
Автор

System.out.printf("gpa: %.2f", gpa);

RudyJayson
Автор

import java.awt.*;

import javax.swing.*;

public class File {
public static void main(String[] args) {

//
// 1.frame add

JFrame f =new JFrame();

f.setTitle("CalCulator");
f.setSize(350, 400);


f.setLayout(null);


//2.add 3 panels

JPanel p1=new JPanel();
p1.setBounds(0, 0, 350, 50);


JPanel p2=new JPanel();
p2.setBounds(0, 50, 200, 350);



JPanel p3=new JPanel();
p3.setBounds(200, 50, 150, 350);


f.add(p1);
f.add(p2);
f.add(p3);



//3.txtfield add in panel 1

JTextField txt = new JTextField();
txt.setBounds(10, 10, 120, 100);

p1.add(txt);



//4. grid in panel2


JButton btn1 = new JButton("1");
JButton btn2 = new JButton("2");
JButton btn3 = new JButton("3");
JButton btn4 = new JButton("4");
JButton btn5 = new JButton("5");
JButton btn6 = new JButton("6");
JButton btn7 = new JButton("7");
JButton btn8 = new JButton("8");
JButton btn9 = new JButton("9");

p2.add(btn1);
p2.add(btn2);
p2.add(btn3);
p2.add(btn4);
p2.add(btn5);
p2.add(btn6);
p2.add(btn7);
p2.add(btn8);
p2.add(btn9);

p2.setLayout(new GridLayout(3, 3));


//5. extra buttons in panel 3

JButton b1 = new JButton("+");
JButton b2 = new JButton("-");
JButton b3 = new JButton("*");
JButton b4 = new JButton("/");


p3.add(b1);
p3.add(b2);
p3.add(b3);
p3.add(b4);

p3.setLayout(new FlowLayout(FlowLayout.LEFT, 50, 25));


f.setVisible(true);




}

}

walterwhite