Monday, 9 April 2018

How to Create an ArrayList and Access it from Another Class

 class DataManager{  
    private List<String> list = Arrays.asList('green', 'blue');  
    public ArrayList getList(){  
      return list;  
    }  
 }  
 // in another class, say in your main method  
 DataManager manager = new DataManager()  
 for(int i = 0; i < manager.getList().size(); i++){  
   System.out.println (manager.getList().get(i));  
 }  

Saturday, 11 July 2015

How can I code for an" login"on html thanks in advance

Question:

How can I code for an" login"on html thanks in advance

.


Answer:



To create code for a login form you need a text editor or a builder/tool that generates html code. A typical login form will contain the fields shown in the following image:







However, to have a nice layout of the fields shown in the picture you need additional html elements or CSS elements.


There are many concrete examples with code on how to create a login form in html: A simple Google search gave me many results including the following:


  1. http://www.cssflow.com/snippets/login-form/demo/html
  2. https://www.authpro.com/cgi-bin/authcode.cgi?user=deluxe
Going to either of the links above will give you example html code for a login form.



Tip

Here are some tips:

  • There is a way of learning doing stuff in html by visiting actual web pages and choosing to view the source code for the site.




Android app on Google Play



  • You can ask Google about anything concerning html


Notes:

This question was originally asked on Facebook on 11-July-2015

hi guis? what is the name of facebook creator? for remembering!

Question:

"hi guis? what is the name of facebook creator? for remembering!"


Comment:

I am not guis but I shall attempt to answer the question.


Answer:



Mark Zuckerberg is the founder and CEO of Facebook, which he started in his college dorm room in 2004 with roomates Dustin Moskovitz and Chris Hughes.


Answer Source:
https://www.facebook.com/pages/Mark-Zuckerberg-Creator-of-FB-/114431475291937


Method used to find answer:
Google search








Other notes:

This question was originally asked on Facebook on 11-July-2015