Go back and study it. You have not even written a running Java program yet
check out a collection of resources I have made. Read practice and come back.
In case you need a real fast training register for Java Course here and when it starts
you will be notified
nimetumia (System.out.println..)console for testing purpose!!hata mimi nimepata hvyo but problem ni kwamba nikirun application nikiwa offline and then nikaconnect pc kwenye internet!!sipati result....
ishu ilikuwa logic,before while loop ilikuwa inaloop only while(online=true) so ilikuwa haitest part yote hii:{
URL url = new URL("http://www.google.com/");
URLConnection conn = url.openConnection();
conn.connect();
online=true;}
nilichokifanya nimeitengenezea boolean method:
public static boolean checkcon(){
//code za kutest internet
}
then nika loop hiyo method yote.
while(checkcon()==true){
JamiiForums uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.