jeudi 5 novembre 2015

How to access data from txt or pdf file into java code for condition checking

Vote count: 0

 this is   x.txt 
 file     
    12=aa
    1234=ytuu
    157=lkjh

    // above is the sample of data(from 7700 similiar lines in actual file) in a txt file . i want to use that data for condition checking in my java code like 

    if (n==12){
     System.out.println("aa");}
    else
    if (n==1234){
     System.out.println("ytuu");}

is there any way to access these data rather than typing all the lines into my code.if so , how ? i am a beginner so please help me with this one.

asked 3 mins ago

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.



How to access data from txt or pdf file into java code for condition checking

Aucun commentaire:

Enregistrer un commentaire