12 years later and you are still helping students like me. God bless you <3
@penzosmusi89Ай бұрын
Keep it up!
@vascobie28252 ай бұрын
Thank you ❤
@ARUNKUMAR-gh6zp2 ай бұрын
Could you send me the database
@Magamb37232 ай бұрын
hey there. I am trying to compile and run but it shows only grey in console after I press command + r. also after I pre command + r for a second an text appears on console saying "waiting to attach" and after only grey.
@محمدبوصالح-ه8ل3 ай бұрын
ساحر أوز العجيب
@rorys4333 ай бұрын
what about on access 2019...
@stardust69983 ай бұрын
Hello from The Odin Project ✌
@exet4 ай бұрын
Wow TY I have been looking for this!
@saranathrajaram6394 ай бұрын
What ide you using int this
@JamesRivera14 ай бұрын
Crazy that I had to look for this. Apple would do well to add Text to their file save type.
@Mintsssssssss4 ай бұрын
Hi from The Odin Project!
@treedruids57763 ай бұрын
Hi! We'll do this
@Fernando-qe1ko4 ай бұрын
you did my day. thanks
@monsteryohan71204 ай бұрын
Thank you I get the point.
@johnd9424 ай бұрын
Just what I was searching for, a simple, direct, no 'fluff' instruction. One suspects you have had teacher training experience. Well done! 👍
@christosioannou99905 ай бұрын
Fantastic video
@theoziomaegole6 ай бұрын
Hello 👋👋, from the Odin project
@ShlokMotwani-q8b6 ай бұрын
It is very inspiring to see your dedication towards uploading content, Heidi :) Keep up the good work! 👍🏼
@gromon82306 ай бұрын
So very helpful. Thanks!
@jeromeectana77016 ай бұрын
What happened when you doble the number?is it invalid?
@taiiissssa6 ай бұрын
thank you! awesome video
@Entertainment143366 ай бұрын
im new to mac device can you give step to execute from first..
@Entertainment143366 ай бұрын
initial step onwards related to compiler and mac also that is terminal
@Entertainment143366 ай бұрын
step show please while initial step
@Entertainment143366 ай бұрын
can you show from starting onwards please i need this
@مروانطارق-ط2د6 ай бұрын
i do need to run c++20 but i dont know how please help me
@harissaeed70126 ай бұрын
Greetings from the TOP in 2024
@briankasangili31967 ай бұрын
Who is here in 2024😊
@chinnu18207 ай бұрын
could you please send the source code ?
@johnsiphiwe47757 ай бұрын
Thank you, Heidi, your work is appreciated
@chukwujohnokike93137 ай бұрын
Please what is the title of the tutorial before this one?
@splash68837 ай бұрын
What is a remainder?
@ezequiellarsen8 ай бұрын
Thanks for sharing your knowledge Heidi. Greetings from Argentina.
@leenasem66139 ай бұрын
thank you, it really helped me while writing my program.
@leenasem66139 ай бұрын
you could use using namespace std; instead of std: : cout/cin
@Soldknight3249 ай бұрын
In addition to being informative this is also very relaxing, thank you
@Raj-fi5ui9 ай бұрын
Thanks for this It really helped a lot ✨
@deveren9 ай бұрын
Hi, Greetings from The Odin Project.
@mansnilsson842910 ай бұрын
this video should come with every mac computer 👍👍
@filippodeluca946410 ай бұрын
where do you get the build debug and run button i dont have them, help please
@serdarcan336310 ай бұрын
thank you
@bikusmoto5911 ай бұрын
var is variable and val is constant.
@Cahangir Жыл бұрын
Thanks for this ancient, yet so useful video, have a great day !
@HeidiGentryKolen11 ай бұрын
:-) You're very welcome. I hope you also have a great day!
@compatrick Жыл бұрын
package ProblemaTest; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.core.type.TypeReference; import java.io.File; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.HashSet; import java.util.Set; public class MainApp { private static final String JDBC_URL = "jdbc:mysql://localhost:3306/testing"; private static final String JDBC_USER = "root"; private static final String JDBC_PASSWORD = ""; public static void main(String[] args) { // Creați o colecție de obiecte de tip set Set<Vehicul> vehicule = new HashSet<>(); // Adăugați obiecte din fișierul in.json la colecție incarcaDateDinFisier(vehicule); // Adaugați și alte obiecte în colecție (dacă este necesar) vehicule.add(new Masina(120, "benzina", 2, "AudiBoss")); vehicule.add(new Camion(80, "motorina", 2000)); // Serializarea obiectelor în fișierul out.json serializeazaInFisier(vehicule); // Insert Masina objects into MySQL table insertMasini(vehicule); stergereMasinicuMaiPutinDe3Locuri(3); } private static void stergereMasinicuMaiPutinDe3Locuri(int maxSeats){ try (Connection connection = DriverManager.getConnection(JDBC_URL, JDBC_USER, JDBC_PASSWORD)) { String sql = "DELETE FROM masina WHERE nr_locuri <= ?"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setInt(1, maxSeats); int rowsDeleted = statement.executeUpdate(); System.out.println(rowsDeleted + " rows deleted from masini."); } } catch (SQLException e) { e.printStackTrace(); } } private static void insertMasini(Set<Vehicul> vehicule) { try (Connection connection = DriverManager.getConnection(JDBC_URL, JDBC_USER, JDBC_PASSWORD)) { for (Vehicul vehicul : vehicule) { if (vehicul instanceof Masina) { Masina masina = (Masina) vehicul; String sql = "INSERT INTO masina (viteza_max, combustibil, firma, nr_locuri) VALUES (?, ?, ?, ?)"; try (PreparedStatement statement = connection.prepareStatement(sql)) { statement.setInt(1, masina.getViteza_max()); statement.setString(2, masina.getCombustibil()); statement.setString(3, masina.getFirma()); statement.setInt(4, masina.getNr_locuri()); statement.executeUpdate(); } } } System.out.println("Masina inserted successfully."); } catch (SQLException e) { e.printStackTrace(); } } private static void incarcaDateDinFisier(Set<Vehicul> vehicule) { try { // Citeste obiectele din fisierul in.json ObjectMapper objectMapper = new ObjectMapper(); Set<Vehicul> obiecteCitite = objectMapper.readValue(new File("src/main/resources/in.json"), new TypeReference<Set<Vehicul>>() {}); // Adauga obiectele citite in colectia existenta vehicule.addAll(obiecteCitite); System.out.println("Obiectele au fost incarcate din fisierul in.json"); } catch (IOException e) { e.printStackTrace(); } } private static void serializeazaInFisier(Set<Vehicul> vehicule) { try { // Serializarea obiectelor în fișierul out.json ObjectMapper objectMapper = new ObjectMapper(); objectMapper.writeValue(new File("src/main/resources/out.json"), vehicule); System.out.println("Obiectele au fost serializate în fișierul out.json"); } catch (IOException e) { e.printStackTrace(); } } }