public class Node {
public int value;
public Node next;
public Node(int v){
value = v;
next = null;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Web Programlama: | |
https://chat.openai.com/share/4703ebe3-1042-4c08-9c98-6c08d26077d2 | |
https://chat.openai.com/share/58fc96a3-c8d4-4409-9a6e-f1041f0da7fc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://chat.openai.com/share/980cd25c-65d6-44c6-b4e4-8551e7e76298 | |
https://chat.openai.com/share/7aaab2d3-feca-48a7-9efb-4c73c4dd9b09 |
Asagida tek yonlu bagli liste olusturulmasini ve bu bagli listenin sonuna eleman eklemenizi saglayacak kodlar verilmistir.
Bir bagli listedeki eleman sayisini donduren Length
metodu ile bir bagli liste ile dizinin iceriklerinin ayni olup olmadigini
test eden Equal
fonksiyonun ici bos birakilmistir. Length
metodu ve Equal
fonksiyonlarinin icine dogru kodlar yazildiktan sonra
size verilen kodlarin calistirilmasi durumunda elde edeceginiz ekran ciktisi asagida verilmistir.
Length metodu ve Equal fonksiyonunu islevlerini yerine getirecek sekilde yaziniz.
public class Node {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.PrintWriter; | |
import java.util.Scanner; | |
public class Database { | |
public Tree studentTree; | |
String fileName; | |
PrintWriter pw; | |
public Database(String fileName) throws Exception{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Insan | |
{ | |
private String ad; | |
private String soyad; | |
private int yas; | |
public Insan(String ad, String soyad, int yas) // yapıcı | |
{ | |
this.ad = ad; | |
this.soyad = soyad; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayStats{ | |
private int[] arr; | |
public ArrayStats(int[] a){ | |
arr = a; | |
} | |
public int max(){ | |
int max = arr[0]; | |
for (int i = 1; i < arr.length; i++){ |
NewerOlder