Tuesday, January 28, 2020

Marriage and Muslim Law

Marriage and Muslim Law The researcher has adopted a doctrinal form of research to do his project. The project entails the researcher to analyzes the concept of marriage under muslim law. Various sources both primary and secondary sources have been consulted for the same. No part of this project is plagiarized and the project is the original work of the researcher. Introduction To what extent is sharia a fixed set of norms that apply to all Muslims? Many assume that sharia rules can simply be found either by reading the Quran, or by listening to the opinion of any Muslim priest. They also assume that all Muslims are bound by the same rules, and that sharia rules can thusbe enforced across national borders to all Muslims equally, in the MiddleEast, Africa, Asia, and Europe. But is this correct? And if not, what then is the correct understanding of sharia? When people refer to the sharia, they are, in fact, referring to their sharia in the name of the eternal will of the Almighty God. The variety of meanings of sharia has given rise to a flexible, multi-interpretable discourse about sharia and law which moves smoothly from one meaning of sharia to another. Marriage or Nikah in Islamic law is a contract pure and simple needing no writing and no scared rites. All that is necessary is offer and acceptance made in the presence and hearing of two male or female witnesses and recording the factum of marriage in the Nikah Register maintained in every mosque signed by the parties and attested by witnesses. It is payable to the wife on the dissolution of marriage or death or divorce. In India, there is no need to register the Muslim marriage, as there is no law requiring registration. I am grateful to Dr.Vijender Kumar to give me this valuable opportunity to do a project on The Concept of Marriage under Muslim Law. We have seen, it is the family law that has always represented the very heart of the Sharia, for it is this part of the law that is regarded by the Muslims as entering into the very warp and woof of their religion. Generally speaking, in the law of the family alone that the Sharia is still applied to some four hundred million Muslims, for it is virtually only in the Arabian Peninsula, Afghanistan, Northern Nigeria that the Sharia is applied today, as such, outside the sphere of family relations and personal status. It is precisely in regards to the law of marriage and divorce that the battle is joined today between the forces of conservatism and and progress in the Muslim world, and the vicissitudes of that battle provide, as we have seen, a gauge of social progress, a mirror of the advance of modernism in Islam, and an illustration of how a nominally immutable law can be changed in practice. Let us start then with a summary statement of Islamic law in these matters. A Muslim woman is bound to monogamy, while a Muslim man may have as many as four wives at once, but no more. In addition, the Ithna Ashari branch of the Shia, alone , allows him to have any number temporary marriages, or marriage of enjoyment, while all schools allow a man to indulge rights of concubinage with his own female slaves. Any sexual intercourse outside these limits  [1]  constitute zina, or illicit sex relations, for which the punishment is death by stoning in the case of an offender who has ever consummated a lawful marriage, and one hundred lashes in the case of others. But these penalties can seldom be properly imposed because of the exceedingly exacting standard of proof required, and the principle that such punishments are averted by any circumstance of doubt-besides the fact that Islamic criminal law has today only a very limited application. In addition a Muslim husband may repudiate his wife or wives at any time and at his unilateral discretion. So much for a very general summary. It is essential, however, first to consider this against its historical background and then elaborate it in greater detail. Marriages in Islam Islam, unlike other religions is a strong advocate of marriage. There is no place for celibacy like, for example the Roman Catholic priests and nuns. The prophet (pbuh) has said there is no celibacy in Islam. Marriage is a religious duty and is consequently a moral safeguard as well as a social necessity. Islam does not equal celibacy with high taqwa / Iman. The prophet has also said, Marriage is my tradition who so ever keeps away there from is not from amongst me. Marriage acts as an outlet for sexual needs and regulate it so one does not become a slave to his/ her desires. It is a social necessity because through marriage, families are established and the family is the fundamental unit of our society. Furthermore, marriage is the only legitimate or halal way to indulge in intimacy between a man and a woman. Islam takes a middle of the road position to sexual relations , it neither condemns it like certain religions, nor does it allow it freely. Islam urges us to control and regulate our desires, whatever they may be so that we remain dignified and not become like animals. Historical Background In pre-Islamic Arabia, it seems, there were several types of marriage, ranging probably from the patrilineal and including the so-called marriage of temporary enjoyment. The most respectable form, however, was a patrilineal marriage in which the groom paid a dower for, or to, his bride. This has developed no doubt, out of the widespread custom of paying bride-wealth to the tribe or the family of the bride for the loss of her reproductive capacity and as a stabilization both of the union and of the relation between two families; but it would seem that even before the the advent of Islam the dower had come to be regarded in Arabia as properly belonging to the bride herself. In any case this is a characteristic of the Islamic law of marriage, however much it is still disregarded in practice in some quarters. Muslim jurists often in fact employ the simile of sale, and regard the dower as consideration for marital rights-a consideration that constitutes an essential element in every Muslim marriage. Nor is this dower repayable on divorce, in Islamic law, once the marriage has been consummated, even where the wife is primarily at fault, except by her own voluntary agreement. Hanafis, on the other hand, consider that an adult woman may contract herself in marriage provided she chooses a husband who is her equal in respect of family, trade, religion, and so forth; that only minors may be given in marriage without their consent; and that even minors have an option of repudiating such a marriage when they reach majority I all cases in which the guardian who acted for them was other than father or grandfather.  [2]  The other Sunni schools exclude marriage by compulsion by any except the father or fathers father (or, in the case of the Malikis, the father or father or his executor); but they extend such compulsion, in respect of virgins daughters, far beyond majority. In addition, a man is prohibited from being married, at one and the same time, to two women who would be debarred, were one of them a male, from marrying each other;  [3]   An Overview of Concept of Marriage in Muslim Law Islam, unlike other religions is a strong advocate of marriage. There is no place of celibacy in Islam like the Roman Catholic priests nuns. The Prophet has said There is no Celibacy in Islam. Marriage acts as an outlet for sexual needs regulates it so one doesnt become slave to his/her desires. It is a social need because through marriage, families are established and the families are the fundamental entity of our society. Furthermore marriage is the only legitimate or halal way to indulge in intimacy between a man and woman. Islamic marriage although permits polygamy but it completely prohibits polyandry. Polygamy though permitted was guarded by several conditions by Prophet but these conditions are not obeyed by the Muslims in toto. Marriage:-Pre Islamic Position Before the birth of Islam there were several traditions in Arab. These traditions were having several unethical processes like:- (i) Buying of girl from parents by paying a sum of money. (ii) Temporary marriages. (iii) Marriage with two real sisters simultaneously. (iv) Freeness of giving up and again accepting women. These unethical traditions of the society needed to be abolished; Islam did it and brought a drastic change in the concept of marriage. Marriage Defined It is quiet relevant to know whether the Muslim marriage is a sacrament like the Hindu marriage, for this let us get acquainted with some of the definitions of Muslim marriage. (a)  Hedaya  [4]  : Marriage is a legal process by which the several process and procreation and legitimation of children between man and women is perfectly lawful and valid. (b)  Bailies Digest  [5]  :- A Nikah in Arabic means Union of the series and carries a civil contract for the purposes of legalizing sexual intercourse and legitimate procreation of children. (c)  Ameer Ali  Ã‚  [6]  :- Marriage is an organization for the protection of the society. This is made to protect the society from foulness and unchestity. (d)  Abdur Rahim  [7]  :- The Mahomedan priests regard the institution of marriage as par taking both the nature of Ibadat or devotional arts and Muamlat or dealings among men. (e)  Mahmood J.  [8]  :- Marriage according to the Mahomedan law is not a sacrament but a civil contract. (f) Under Section 2 of Muslim Women (Protection of Rights on Divorce) Act, 1986 Marriage or Nikah among Muslims is a Solemn Pact or Mithaq-e-ghalid between a man a woman soliciting each others life companionship, which in law takes the form of a contract or aqd. Its a matter of query still existing whether Muslim marriage is only a civil contract or an Ibadat Muamlat. While unleashing the various definitions its quite a big problem to say which one is the most appropriate, in my opinion although the essentials of a contract is fulfilled yet marriage can never be said to be a contract because marriage always creates a bondage between the emotions and thinking of two person. .J Sarsah Sulaiman  [9]  has said In Islam , marriage is not only a civil contract but also a sacrament. Muslim marriage can also be differentiated from a civil contract on the basis of following points:- (a) It cannot be done on the basis of future happenings unlike the contingent contracts. (b) Unlike the civil contract it cannot be done for a fixed period of time. (Muta Marriage being an exception.) Purpose of Marriage The word Zawj is used in the Quran to mean a pair or a mate. The general purpose of marriage is that the sexes can provide company to one another, procreate legitimate children live in peace tranquility to the commandments of Allah. Marriage serves as a mean to emotional sexual gratification and as a mean of tension reduction. Marriage compulsory or not ? According to Imams Abu Hanifa, Ahmad ibn Hanbal Malik ibn Anas, marriage in Islam is recommendatory, however in certain individuals it becomes Wajib or obligatory. Imam Shafi considers it to Nafl or Mubah (preferable). The general opinion is that if a person , male or female fears that if he/she does not marry they will commit fornication, then marriage becomes Wajib. However, one should not marry if he does not possess the means to maintain a wife and future family or if he has no sex drive or if dislikes children, or if he feels marriage will seriously affect his religious obligations. Prophet said:- When a man marries he has fulfilled half of his religion, so let him fear Allah regarding the remaining half. This very wording of Prophet marks the importance of marriage, thus it could be well concluded that marriage in Islam is must. Capacity for Marriage The general essentials for marriage under Islam are as follows:- (i) Every Mahomedan of sound mind and having attained puberty can marry. Where there is no proof or evidence of puberty the age of puberty is fifteen years. (ii) A minor and insane (lunatic) who have not attained puberty can be validly contracted in marriage by their respective guardians. (iii) Consent of party is must. A marriage of a Mahomedan who is of sound mind and has attained puberty, is void, if there is no consent. Requirements of Muslim Nikah The solemnization of a Muslim marriage requires adherence to certain forms and formulas. They are called the essentials of a valid marriage. If any of these requirements is not fulfilled the marriage becomes either void or irregular, as the case may be. The essentials are as follows: Proposal and Acceptance Competent Parties No legal Disability Absolute Prohibition There is absolute prohibition of marriage in case or relationship of consanguinity which means the relationship of the person through his/her father or mother on the ascending side, or through his or her own on the descending side. Marriage among the persons related by affinity, ie, through the wife is not permitted. Marriage with foster mother and other related through such foster mother is also void. Relative Prohibitions : Unlawful conjunction Marrying a fifth wife Marrying a woman undergoing iddat Marrying non-Muslim Absence of proper witnesses Woman contracting a second marriage during the subsistence of the first marriage. The following marriages are also prohibited: Marrying pregnant women Marrying own divorced wife Marrying during pilgrimage Essentials of Marriage The essentials of a valid marriage are as follows:- (i) There should be a proposal made by or on behalf of one of the parties to the marriage, and an acceptance of the proposal by or on behalf of the other party. (ii) The proposal and acceptance must both be expressed at once meeting. (iii) The parties must be competent. (iv) There must be two male or one male two female witnesses, who must be sane and adult Mahomedan present hearing during the marriage proposal and acceptance. (Not needed in Shia Law) (v) Neither writing nor any religious ceremony is needed. Essentials Explored (i) A Muslim marriage requires proposal Ijab from one party and acceptance Qubul from the other side. This must be done in one sitting. (ii) The acceptance must be corresponding to what is being offered. (iii) The marriage must be effectively immediate. If the Wali says I will marry her to you after two months, there is no marriage. (iv) The two parties must be legally competent; i.e. they must be sane and adult. (v) The women must not be from the forbidden class. (vi) The consent given must be free consent,. It must not be an outcome of compulsion, duess, coercion or undue influence. Kinds of Marriage Under Muslim generally two types of marriage is recognized   (i) Regular Marriage (essentials discussed earlier) (ii) Muta marriage Muta Marriage: Muta marriage is a temporary marriage. Muta marriage is recognized in Shia only. Sunni law doesnt recognize it. (Baillie, 18). A Shia of the male sex may contract a Muta marriage with a woman professing the Mahomedan, Christian or Jewish religion, or even with a woman who is a fire worshipper but not with any woman following any other religion. But a Shia woman cannot contract a Muta marriage with a non muslim. The essentials of Muta marriage are:- (1) The period of cohabitation should be fixed. (2) Dower should be fixed. (3) If dower specified, term not specified, it could amount to permanent or regular marriage. (4) If term fixed dower not specified, it amounts to void marriage. Aspects of Marriage (i) Valid or Sahih (ii) Irregular or Fasid (iii) Void or Batil (i) Valid or Sahih Marriage: -  Under the Muslim law, a valid marriage is that which has been constituted in accordance with the essential conditioned prescribed earlier. It confers upon the wife; the right of dower, maintenance and residence, imposes on her obligation to be faithful and obedient to her husband, admit sexual intercourse with him observe Iddat. (ii) Irregular or Fasid Marriage:   Those marriages which are outcome of failures on part of parties in non fulfillment of prerequisites but then also are marriages; to be terminated by one of he party is termed to be Irregular marriages. They are outcome of- (a) A marriage without witness (Not under Shia Law) (b) Marriage with fifth wife. (c) Marriage with a women undergoing Iddat. (d) Marriage with a fire-worshipper. (e) Marriage outcome of bar of unlawful conjunction. An irregular marriage has no legal effect before consummation but when consummated give rise to several rights obligations. (iii) Void or Batil Marriage:- A marriage which is unlawful from its beginning. It does not create any civil rights or obligations between the parties. The offspring of a void marriage is illegitimate. They are outcome of- (a) Marriage through forced consent. (b) Plurality of husband. (c) Marriage prohibited on the ground of consanguinity. (d) Marriage prohibited on the ground of affinity. (e) Marriage prohibited on the ground of fosterage. Effect of Marriage (Sahih) The lawful obligations which arise after marriage are as follows- (i) Mutual intercourse legalized and the children so born are legitimate. (ii) The wife gets power to get Mahr (iii) The wife entitles to get maintenance. (iv) The husband gets right to guide and prohibit the wifes movement(for valid reasons only) (v) Right of succession develops. (vi) Prohibition of marriage due to affinity. (vii) Women bound to complete Iddat period not to marry during Iddat period; after divorce or death of husband. The ob ligations and rights set between the two parties during and after the marriage are to be enforced till legality. On the basis of a marriage husband and wife do not get the right on one anothers property. THE MARRIAGE CEREMONY: 1. Engagement or Mangni: Does not qualify the future spouses to go out together, even if the parents consent. Man and woman become permissible for each other only after the performance of Nikah. 2. Dowry: The unislamic system of demanding and accepting dowry must be avoided at all costs. Shariah does not make any expense incumbent on the bride/brides parents. Even the marriage expenses, it is recommended to be borne by the bridegroom. However, the bride can bring whatever she wants of her free will, and it will always belong to her. 3. Other Unislamic Customs: Many other unislamic customs have crept into the marriage ceremony of some Muslims. These customs are either borrowed from non-Muslim cultures or continue because they are established in past generations. One must avoid them if they are against the Shariah, even if some people are displeased. Other customs like the breaking of coconut etc. also do not feature among the Islamic rituals. All actions, customs etc., which show disrespect to Islam or weaken the importance of Islam, have to be avoided. 4. Haraam Acts: Some of the rituals in marriage ceremonies are absolutely Haraam like the playing of music. It is also Haraam for ladies to go for mixed gatherings without proper Hijab. Such things invite divine wrath and take away the blessings of this auspicious occasion. In the Islamic Law, marriage is an Aqd, a contract. The components of this contract are as follows: A. Proposal: In Islam the process of proposal by a man to a woman for her hand in marriage, or for that matter, to her family, is encouraged. Islam considers this natural, and recommends it as an act of respectability and dignity for women. B. Mahr: And the intending husband is asked to offer a Mahr to the bride. Holy Quran says, And give women their Mahr as a free gift, but if they of themselves be pleased to give up to you a portion of it, then eat it with enjoyment and with wholesome result. (Surah Nisa 4:4) The following points are worthy of consideration: a) Mahr must be agreed upon by the marrying partners themselves, not by parents. b) Mahr is her right, to which her husband remains indebted. c) It is a free gift and not her price. The Mahr may be cash, kind or non-material (like training or teaching something). It can be paid up front or can be in form of promise to pay upon demands decided prior to the solemnization of marriage. Moajjal (immediate), Muwajjal and Indat-talab (on demand). However, it is much recommended to pay it before or at the time of Nikah itself. C. The Nikah Ceremony: According to Shariah, the wife-to-be says, An Kahtu nafsaka alal mahril maloom. (I have given away myself in Nikah to you, on the agreed Mahr.).Immediately, the man (bridegroom) says, Qabiltun Nikaha. (I have accepted the Nikah.).With these pronouncements, they become husband and wife. If the marrying partners are not able to recite the formula in Arabic, one or two persons or priests are appointed and authorized to officiate. One who represents the bride would first seek her explicit consent to officiate on her behalf, and so would the other who acts on behalf of the groom. Naturally, there would be a slight variation in the pronouncements, because the persons reciting them are appointees. A person who represents the bride would initiate by saying, Ankahtu muwakkilati muwakkilaka alal mahril maloom. (I give away in Nikah the woman who has thus appointed and authorized me, to the man who has authorized you, on an agreed Mahr.) The grooms representative would respond, Qabiltunnikaaha limuwakkili alal mahril maloom. (I accept the Nikah on behalf of the one who has appointed me, on the agreed Mahr.) It is mustahab to recite a brief discourse or Khutba before the Nikah formula is enunciated. In this Khutba, Allah is praised for His Wisdom in regulating the lawful process of procreation, and then the traditions from Holy Prophet Muhammad (s.a.w.) are also recited. D. Time of Marriage Ceremony: Though basically marriage is allowed at all times, there are some days on which marriage is not recommended; some of these are based on ahadith and some on cultural, historical reasons.Generally, we can categorize these days into three: (a) There are some ahadith which say that it is makruh (not recommended) to have a marriage ceremony on the days when the moon is in the constellation of Scorpio (this is known as al-qamar fil aqrab or qamar dar aqrab), during the last two or three days of the lunar months, and on Wednesdays. (b) There are certain days of the Islamic calendar, which have become associated with the early events of the Islamic history; for example, the 10th of Muharram is the day of mourning for the massacre at Karbala or the day of Holy Prophet Muhammads (s.a.w.) death in Safar, etc. Since such days are commemorated by the Muslims as days of mourning, it is socially and, to some extent, religiously not recommended to have a marriage ceremo ny on such days. Shia Ithna Ashari (Twelver Shias), especially in India and Pakistan, rarely perform marriage ceremony between the 1st of Muharram and the 8th of Rabi al-Awwal as this period includes the mourning days of Muharram culminating in the martyrdom of Imam Askari (a.s.). The 9th Rabi al-Awwal is celebrated as Eid-e-Zahra..If there is a need, however, Nikah, can be performed at any time. E. Permission of the Bride-to-be/Father: The girls consent is necessary and has to be taken by her representative, directly. In case of a virgin/spinster the fathers or the grandfathers permission is also necessary. However if the permission is unreasonably withheld under some conditions or the girl has no father/paternal grandfather it is not necessary. However, a woman who is not a virgin, does not require any permission in case of remarriage. Conclusion Marriage is a religious duty of every Muslim and it is considered to be a moral safeguard and a social need. The Prophet has also said Marriage is my tradition whosoever keeps away there from is not from amongst me. Holy Quran says: And marry those among you who are single and those who are fit among your male slaves and your female slaves; if they are needy, Allah will make them free from want out of His grace; and Allah is Ample-giving, Knowing. (Surah Nur 24:32).The above ayat begins with the words Wa Ankehoo (And marry ) The imperative form of the word nikah implies that either it is obligatory or highly recommended. According to scholars, though marriage is a highly recommended act, it becomes obligatory when there is a chance of falling into sin.Holy Prophet Muhammad (s.a.w.) says, No house has been built in Islam more beloved in the sight of Allah than through marriage. On another occasion Holy Prophet Muhammad (s.a.w.) said: The best people of my nation (Ummat) are those who get married and have chosen their wives, and the worst people of my nation are those who have kept away from marriage and are passing their lives as bachelors.Imam Ali (a.s.) exhorts, Marry, because marriage is the tradition of Holy Prophet Muhammad (s.a.w.). Holy Prophet Muhammad (s.a.w.) also said, Whosoever likes to follow my tradition, then he should know that marriage is from my tradition. Unlike Hindu where the marriage is a sacrament, marriages in Muslims have a nature of civil contract. Marriage is necessary for the legitimization of a child. When the marriage is done in accordance to the prescribed norms it creates various rights and obligations on both the parties.

Monday, January 20, 2020

Newspaper Report On The Conviction Of Macbeth :: essays research papers

Topic: If macbeth was still alive show a newspaper article showing the trial that would take place concerning his conviction of murder (INSERT TOWN HERE) - After a long and arduous trial, MacBeth was found guilty by the Brisbane Court House yesterday. The former King of Scotland pleaded not guilty in the (INSERT TOWN HERE) sittings of District Court to murder and premeditated murder. It was revealed by the defence, that MacBeth was a former battle hardened soldier, who was given the title ?Thane of Cawdor? for his glorious effort on the battlefield. It was also portrayed that MacBeth was a character who set aside concern for his own life, a trait that was quickly dismissed by the prosecution throughout the trial. It was heard by the jury that, when MacBeth was returning from the battlefield to Duncan?s camp, he first encountered the mysterious and enigmatic three witches. It was here that the prophecy of MacBeth becoming king was announced by the witches. MacBeth testified upon hearing this, that he disbelieved the allegation. However witnesses put forward that when MacBeth arrived back at his castle, he was overheard conspiring with Lady MacBeth regarding Duncan?s murder. Further into the trial it was exposed that MacBeth could not become king, as the Scottish lineage to the throne moves from father to first-born son. However, members from within the same bloodline could lay claim to the throne if Duncan had no living sons. The prosecution then brought forth D.N.A evidence, which revealed that MacBeth was in fact Duncan?s cousin. Since Duncan had already named Malcolm the heir to the Scottish throne, Duncan had to be murdered. Information gathered from a nearby witness shows that at the hour of 12:45 am, Duncan the former king of Scotland lay peacefully in his humble chambers. The prosecution revealed that the servants guarding the kings? bedroom were drugged in order to gain a silent entry. MacBeth then quietly crept towards the king lying asleep. From the evidence revealed in the autopsy of Duncan, and the statement given to police by witnesses, it was discovered that he was stabbed a total of seven times in the chest area causing death to the victim. With murder weapon in hand, MacBeth then continued to murder the two drugged servants to ensure total silence on their part. A well beloved and honoured king now brutally dead. It was then conveyed by the prosecution that MacBeth proceeded to blame the deaths, on the two dead servants.

Sunday, January 12, 2020

Stylistic Analysis of the Text “The Last Leaf

/* * */ package javafxgrouping; /** * * @author 094632220 */ public class StudentEntity { // private String id; private String name; private String className; public StudentEntity(){ } public StudentEntity(String aID, String aName, String className) { this. id = aID; this. name = aName; this. className = className; } public String getId() { return id; } public void setId(String id) { this. id = id; } public String getName() { return name; } public void setName(String name) { this. name = name; } public String getClassName() { return className; } public void setClassName(String className) { his. className = className; } @Override public String toString() { String str = id + â€Å",† + name + â€Å",† + className ; return str; } } /* * : TaDB. java * —————————– * HashMap HashMap id( )? * , taMap? HashMap * , (public ): * TaEntity findEntry(String id): * String findName(String id): * int rows(): * Iterator getIterator(): ( ) */ package javafxgrouping; import java. io. BufferedReader; import java. io. FileNotFoundException; import java. io. FileReader; mport java. io. IOException; import java. util. ArrayList; import java. util. HashMap; import java. util. Iterator; import java. util. Map; import java. util. StringTokenizer; /** * * @author */ public class TaDB { /* */ private Map taMap; // (HashMap) /* * TaDB, (TA. txt) * , */ public TaDB(String filename) { taMap = new HashMap(); // /* */ FileReader fr = null; try { fr = new FileReader(filename); } catch (FileNotFoundException e) { System. out. print(â€Å" † + filename + â€Å"! ); } /* */ BufferedReader bf = new BufferedReader(fr); String line; try { // while ((line = bf. readLine()) ! = null) { // , ta ArrayList ta = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(line, â€Å",†); ta. add(tokenizer. nextToken()); while (tokenizer. hasMoreTokens()) { String token = tokenizer. nextToken(); ta. add(token); } // TaEntity entry = new TaEntity(ta. get(0), ta. get(1), ta. get(2), ta. get(3), ta. get(4), ta. get(5)); // (HashMap) taMap. put(entry. getId(), entry); } } catch (IOException e) { System. ut. print(â€Å" † + filename + â€Å"! â€Å"); } } /* * id( ) , null? */ public TaEntity findEntry(String id) { return taMap. get(id); } /* * id( ) , null? */ public String findName(String id) { return taMap. get(id). getName(); } /* * */ public int rows() { return taMap. size(); } /* * (id) */ public Iterator getIterator() { return taMap. keySet(). iterator(); } } /* * */ package javafxgrouping; /** * * @author */ public class TaEntity { private String id; // private String name; // rivate String iid; // private String email; // private String phone; // private String tutor; // /* */ public TaEntity() { } /* */ public TaEntity(String aID, String aName, String aIID, String aEmail, String aPhone, String aTutor) { this. id = aID; this. name = aName; this. iid = aIID; this. email = aEmail; this. phone = aPhone; this. tutor = aTutor; } /*getter ? setter*/ public String getId() { return id; } public void setId(String ID) { this. id = ID; } public String getName() { return name; } public void setName(String name) { this. name = name; } public String getIid() { eturn iid; } public void setIid(String IID) { this. iid = IID; } public String getEmail() { return email; } public void setEmail(String email) { this. email = email; } public String getPhone() { return phone; } public void setPhone(String phone) { this. phone = phone; } public String getTutor() { return tutor; } public void setTutor(String tutor) { this. tutor = tutor; } * */ @Override public String toString() { String str = id + â€Å",† + name + â€Å",† + iid + â€Å",† + email + â€Å",† + phone + â€Å",† + tutor; return str; } } /* * */ package javafxgrouping; import java. io. FileWriter; import java. io.IOException; import java. io. PrintWriter ; import java. util. ArrayList; import java. util. Iterator; import java. util. Random; import java. util. logging. Level; import java. util. logging. Logger; import javafx. application. Application; import javafx. collections. FXCollections; import javafx. collections. ObservableList; import javafx. event. ActionEvent; import javafx. event. EventHandler; import javafx. scene. Group; import javafx. scene. Scene; import javafx. scene. control. Button; import javafx. scene. control. ListView; import javafx. scene. input. MouseEvent; import javafx. scene. text. Font; import javafx. stage.Stage; /** * * @author */ public class JavaFXGrouping extends Application { // HTML private static String htmlFileName = â€Å"group. xhtml†; // CSS private static String cssFileName = â€Å"style. css†; private final int sceneWidth = 900; // private final int sceneHeight = 660; //// private TaDB taDb = new TaDB(â€Å"src/javafxgrouping/TA. txt†); // // , private StudentsDB studen tsDb = new StudentsDB(â€Å"src/javafxgrouping/Students. txt†); private ArrayList taIdArray = new ArrayList(); // d private ArrayList studentIdArray = new ArrayList(); // id private ArrayList studentAdd = new ArrayList(); private int studentsNo = studentsDb. rows(); private int groupNo = taDb. rows(); // , private Button btn = new Button(â€Å" â€Å"); // â€Å" â€Å" private Button btn1 = new Button(â€Å" HTML â€Å"); // â€Å" HTML â€Å" private ListView[] group = new ListView[groupNo]; // , 1? rivate ObservableList[] myObservableList = new ObservableList[groupNo]; // private Group root = new Group(); // @Override public void start(final Stage primaryStage) { // â€Å" â€Å" btn. setFont(Font. font(null, 24)); btn. setLayoutX(sceneWidth – 240); btn. setLayoutY(20); btn. setPrefSize(220, 50); // â€Å" HTML â€Å" btn1. setFont(Font. font(null, 24)); btn1. setLayoutX(sceneWidth – 240); btn1. setLayoutY(20); btn1. setPrefSize(220, 50); btn1. se tVisible(false); initArray(); // taIdArray? studentIdArray drawGroupList(); // , root. getChildren(). ddAll(btn, btn1); // Scene scene = new Scene(root, sceneWidth, sceneHeight); // primaryStage. setTitle(â€Å" â€Å"); // primaryStage. setScene(scene); // primaryStage. show(); // //† â€Å" ( ) btn. setOnAction(new EventHandler() { @Override public void handle(ActionEvent event) { btn. setVisible(false); randomGrouping(); btn1. setVisible(true); } }); //† HTML â€Å" ( ) btn1. setOnAction(new EventHandler() { @Override public void handle(ActionEvent event) { writeToFile(); btn1. setVisible(false); } }); } ** * JavaFX main() IDE FX * NetBeans main() * * @ args */ public static void main(String[] args) { launch(args); } private void drawGroupList() { int k; for (int j = 0; j < groupNo; j++) { myObservableList[j] = FXCollections. observableArrayList(); group[j] = new ListView(); group[j]. setStyle(â€Å"-fx-font-size:18;†); group[j]. setItems(myObservableList [j]); group[j]. setLayoutX(20 + j * 60); group[j]. setLayoutY(20 + j * 34); group[j]. setPrefSize(360, 320); k = j + 1; myObservableList[j]. add(â€Å"? † + k + â€Å"? [ :† + taIdArray. et(j) + â€Å",† + taDb. findName(taIdArray. get(j)) + â€Å"]†); final int i = j; group[j]. setOnMouseClicked(new EventHandler() { @Override public void handle(MouseEvent event) { group[i]. toFront(); } }); root. getChildren(). add(group[j]); } } private void initArray() { // id Iterator taIterator = taDb. getIterator(); while (taIterator. hasNext()) { taIdArray. add(taIterator. next()); } // id , Iterator studentsIterator = studentsDb. getIterator(); while (studentsIterator. hasNext()) { studentIdArray. add(studentsIterator. ext()); } } private void randomGrouping() { // , int i, j, num = 0; Random studentsRandom = new Random(); for (i = 0; i < groupNo; i++) { j = 0; if (i < studentsNo % groupNo) { while (((studentsNo – num) ! = 0) && (j < studentsNo / groupNo + 1)) { j++; int studentNo = studentsRandom. nextInt(studentsNo – num); myObservableList[i]. add(studentsDb. findclassName(studentIdArray. get(studentNo)) + â€Å",† + studentIdArray. get(studentNo) + â€Å",† + studentsDb. findName(studentIdArray. get(studentNo))); studentAdd. add(studentIdArray. et(studentNo)); studentIdArray. remove(studentNo); num++; if (num == studentsNo) { break; } } } else { while (((studentsNo – num) ! = 0) && (j < studentsNo / groupNo)) { j++; int studentNo = studentsRandom. nextInt(studentsNo – num); myObservableList[i]. add(studentsDb. findclassName(studentIdArray. get(studentNo)) + â€Å",† + studentIdArray. get(studentNo) + â€Å",† + studentsDb. findName(studentIdArray. get(studentNo))); studentAdd. add(studentIdArray. get(studentNo)); studentIdArray. remove(studentNo); num++; f (num == studentsNo) { break; } } } } } private void writeToFile() { writeToHtml(htmlFileName); createCss(cssFileName); } private void writeToHtml(String fileName) { // HTML , PrintWriter wr = null; try { wr = new PrintWriter(new FileWriter(htmlFileName)); } catch (IOException ex) { Logger. getLogger(JavaFXGrouping. class. getName()). log(Level. SEVERE, null, ex); } wr. println(â€Å"

Saturday, January 4, 2020

Chemical Processes And Its Effects On The Industrial Age

In order to power the industrial age, humans have burned gigantic amounts of coal to produce any form of power. Coal naturally contains high amounts of sulphur and burning of coal produces huge amounts of heat and the sulphur present in the coal combines with the atmospheric oxygen to produce Sulphur Dioxide. The smoke stacks of a power plant throw out all the waste gases into the atmosphere which contains huge amounts of Sulphur Dioxide. It is said that thermal power plants are the largest contributor of Sulphur Dioxide into the atmosphere. It is estimated that more than half of the total amount of Sulphur Dioxide generated in the atmosphere comes directly from thermal power plants that run on coal. Another anthropological source of Sulphur Dioxide gas as a pollutant is from paper production. The paper mills that produce pulp wood through a chemical process, normally combust their spent pulping liquor in a combustion unit. The most widely used chemical processes are Kraft Pulping process, Sulphite Pulping and Neutral Sulphite Semi-Chemical Pulping (NSSC Pulping). Among these, Kraft Pulping process is the most widely used process as it can be used to make strong and durable paper products. This process consists of digestion of wood, or any other cellulite substance in a solution of sodium sulphite and sodium hydroxide, the waste products of which produce harmful pollutants including sulphur compounds. Sulphite Pulping and NSSC Pulping produce paper for the printing industryShow MoreRelatedHealth Risks And Exposure Of Toxic Chemicals1048 Words   |  5 PagesHealth Risk and Exposure to Toxic Chemicals Many scientific researchers have said that our environment has been filled with toxic chemicals, which us humans have had a part of. There are many different issues that should concern us surrounding these toxic chemicals. The major concern is that many of these toxic chemicals have been claimed to be causing damage to the health of humans and even other life forms. Another concern is that most of the theses toxic chemicals have just recently been produced;Read MoreSpatial Water Quality Analysis Of Vadodara District Using Geo Informatics Tools1399 Words   |  6 PagesAlluvium areas. With the progressive development of Vadodara city and its neighboring area, there is increasing pressure on the exploitation of ground water resources. Drinking water should be safe as it is the most vital commodity for humans. Physico-chemical parameters analysis is done for the determination of Ca2+, Mg2+,Cl-, F-, pH. GIS technique is use to identify the hazard zones on the basis of hydrochemical parameters for Vadodara Taluka. Maps are generated for identification and analyze the spatio-Read MoreRising Water Levels Threatening The Maldives Islands1305 Words   |  6 Pagescentury, somewhere between 1900 and 1950. The industrial revolution happened between the years 1820 and 1840, although great improvements in technology were achieved in the 1900 s. The increasing temperatures since the industrial revolution work as a proof that global warming is a direct effect of human activity. As image 1 shows before the 20th century the variations in the earth s climate were minimal, except for that of the ice age. Although the industrial revolution detonated the rising temperatureRead MoreThe Story of Stuff1537 Words   |  7 Pagesearth and starting their journey through the materials economy. The problem here is simple: we are using too much stuff, the processes by which we extract all that stuff cause more damage and we are not sharing the stuff equitably. We are trashing the planet. We are using and wasting more resources each year than the earth can renew. And on top of using too much, the processes we use to extract all that stuff like clear cutting forests, mountain top removal mining, bottom trawling fishing and othersRead MoreClimate Change : The Greenhouse Gases1409 Words   |  6 Pagesâ€Å"The Greenhouse Effect† or â€Å"Greenhouse gases† have become somewhat of scary concepts in relation to climate change. In fact, without the Greenhouse effect, the average temperature of the Earth would be 5F rather than the current average at 59F. Greenhouse gases are composed mostly of water vapor, but also carbon dioxide, methane, and certain types of clouds. These gases lie in the troposphere of the atmosphere and allows the shortwave radiation of the sun to pass through the atmosphere and warmRead MoreThe Municipal Water And Water Quality1534 Words   |  7 Pa gesimportant to their health and well-being. With the potable water is scarce, it is significant to find out the impact factors of water quality in Canada. In particular, worldwide water quality is declining mainly due to human activities. For example, new chemicals from industries are the key factors that contribute to the deterioration of water quality. In addition, climate change will further affect Canada’s water quality. According to one report from the United Nations (U.N.), it mentions that climatic factorsRead MoreThe Historical Timeline Of Air Quality Improvement Essay1416 Words   |  6 PagesFINDINGS AND OPINIONS The historical timeline of air quality improvement covering the past decades since the industrial revolution grabbed a foothold in 1970. 1960s were the years of protest and reform. Deteriorating environmental conditions as a result of human activities led to pollution levels so severe that smog reduced visibility to less than a few hundred feet in areas of high industrial operations. These conditions and the increased health risks and deaths related to pollution events promptedRead MoreDoes Bpa Be An Endocrine Disrupting Compound?1300 Words   |  6 Pages(BPA), a chemical commonly found in a variety of consumer products. Some groups claim that exposure to even low doses of BPA -- which is considered to be an endocrine-disrupting compound (EDC) -- leads to ailments including cancer and diabetes, and can trigger autism and other neurobehavioral disorders. The opposing viewpoint holds that each exposure is so minimal that the lifetime risk to human health does not warrant a ban on w hat is otherwise considered to be a commercially useful chemical. An examinationRead MoreDo Humans Play Climate Change Or Is It Just Mother Nature?916 Words   |  4 PagesDo humans play a part in climate change or is it just mother nature? I believe that humans are play the main role in climate change. Since the Industrial age humans have played the main role in climate change because of greenhouse gases which cause the greenhouse effect. The main greenhouse gas that we emit is carbon dioxide from the burning of fossil fuels, the other greenhouse gases that we emit are methane, Nitrous Oxide, and Fluorinated gases. These greenhouse gases will absorb and re-emit someRead MoreThe Impact of Man on the Environment Essay1222 Words   |  5 Pageshas had many far-reaching effects on the environment over the years. Global warming, pollution and the damage to the ozone layer are a few of the major things that can be heard about in the news. Man has damaged the earth gradually over the years and this damage is next to impossible to be reversed, we are now trying to stop more damage being caused to the environment. For example, hedgerows have been destroyed but now people have realised what effects this has on the environment