Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

grafikte null basma sorunu çözüldü

  • Loading branch information...
commit a9d2877bae2fd414aca6379548bba5d81d25e08a 1 parent b24e09a
Ecem authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 app/controllers/Application.java
View
5 app/controllers/Application.java
@@ -163,15 +163,14 @@ public static void sayiBul(String k) {
k = duzenle(k);
String[] dizi = k.split(" ");
KokBulucu kok = z.kokBulucu();
- String[] gecis = null;
String[] kokler = null;
- gecis = new String[dizi.length];
+ List<String> gecis = new ArrayList();
@fehmicansaglam Owner

List<String> gecis = new ArrayList<String>();

olarak kullanırsak daha doğru olur.

Tamamdır.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
for (int i = 0; i < dizi.length; i++) {
kokler = kok.stringKokBul(dizi[i]);
try {
if (!"".equals(kokler[0]))
- gecis[i] = kokler[0];
+ gecis.add(kokler[0]);
} catch (Exception e) {
Logger.error(e, "bir hata oluştu");
}
@fehmicansaglam

List<String> gecis = new ArrayList<String>();

olarak kullanırsak daha doğru olur.

Please sign in to comment.
Something went wrong with that request. Please try again.